src/Entity/Company.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use App\Entity\Tva;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\CompanyRepository")
  8.  */
  9. class Company
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $name;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $logo;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $footerLogo;
  29.     /**
  30.      * @ORM\Column(type="text", nullable=true)
  31.      */
  32.     private $address;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $region;
  37.     /**
  38.      * @ORM\Column(type="string", length=20, nullable=true)
  39.      */
  40.     private $zip;
  41.     /**
  42.      * {# Code TVA / Matricule fiscal #}
  43.      * @ORM\Column(type="string", length=64, nullable=true)
  44.      */
  45.     private ?string $tvaCode null;
  46.     // {# TVA d’achat par défaut de la société #}
  47.     /**
  48.      * @ORM\ManyToOne(targetEntity=Tva::class)
  49.      * @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
  50.      */
  51.     private ?Tva $tvaRateBuy null;
  52.     // {# TVA de vente par défaut de la société #}
  53.     /**
  54.      * @ORM\ManyToOne(targetEntity=Tva::class)
  55.      * @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
  56.      */
  57.     private ?Tva $tvaRateSale null;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      */
  61.     private $mail;
  62.     /**
  63.      * @ORM\Column(type="string", length=255, nullable=true)
  64.      */
  65.     private $website;
  66.     /**
  67.      * @ORM\Column(type="string", length=20, nullable=true)
  68.      */
  69.     private $phone;
  70.     /**
  71.      * @ORM\Column(type="string", length=20, nullable=true)
  72.      */
  73.     private $mobile;
  74.      /**
  75.      * @ORM\Column(type="json", nullable=true)
  76.      */
  77.     private $socialLinks;
  78.     /**
  79.      * @ORM\Column(type="datetime")
  80.      * @Gedmo\Timestampable(on="update")
  81.      */
  82.     private $updated_at;
  83.     public function setName(string $name): self
  84.     {
  85.         $this->name $name;
  86.         return $this;
  87.     }
  88.     public function getName(): ?string
  89.     {
  90.         return $this->name;
  91.     }
  92.     public function setLogo(?string $logo): self
  93.     {
  94.         $this->logo $logo;
  95.         return $this;
  96.     }
  97.     public function getLogo(): ?string
  98.     {
  99.         return $this->logo;
  100.     }
  101.     public function setFooterLogo(?string $footerLogo): self
  102.     {
  103.         $this->footerLogo $footerLogo;
  104.         return $this;
  105.     }
  106.     public function getFooterLogo(): ?string
  107.     {
  108.         return $this->footerLogo;
  109.     }
  110.     public function setAddress(string $address): self
  111.     {
  112.         $this->address $address;
  113.         return $this;
  114.     }
  115.     public function getAddress(): ?string
  116.     {
  117.         return $this->address;
  118.     }
  119.     public function setRegion(string $region): self
  120.     {
  121.         $this->region $region;
  122.         return $this;
  123.     }
  124.     public function getRegion(): ?string
  125.     {
  126.         return $this->region;
  127.     }
  128.     public function setZip(?string $zip): self
  129.     {
  130.         $this->zip $zip;
  131.         return $this;
  132.     }
  133.     public function getZip(): ?string
  134.     {
  135.         return $this->zip;
  136.     }
  137.     public function setPhone(string $phone): self
  138.     {
  139.         $this->phone $phone;
  140.         return $this;
  141.     }
  142.     public function getPhone(): ?string
  143.     {
  144.         return $this->phone;
  145.     }
  146.     public function setMobile(string $mobile): self
  147.     {
  148.         $this->mobile $mobile;
  149.         return $this;
  150.     }
  151.     public function getMobile(): ?string
  152.     {
  153.         return $this->mobile;
  154.     }
  155.     public function setSocialLinks(array $socialLinks): self
  156.     {
  157.         $this->socialLinks $socialLinks;
  158.         return $this;
  159.     }
  160.     public function getSocialLinks(): ?array
  161.     {
  162.         return $this->socialLinks;
  163.     }
  164.     public function getTvaCode(): ?string
  165.     {
  166.         return $this->tvaCode;
  167.     }
  168.     public function setTvaCode(?string $tvaCode): self
  169.     {
  170.         $this->tvaCode $tvaCode;
  171.         return $this;
  172.     }
  173.     public function setMail(string $mail): self
  174.     {
  175.         $this->mail $mail;
  176.         return $this;
  177.     }
  178.     public function getMail(): ?string
  179.     {
  180.         return $this->mail;
  181.     }
  182.     public function getTvaRateBuy(): ?Tva
  183.     {
  184.         return $this->tvaRateBuy;
  185.     }
  186.     public function setTvaRateBuy(?Tva $tvaRateBuy): self
  187.     {
  188.         $this->tvaRateBuy $tvaRateBuy;
  189.         return $this;
  190.     }
  191.     public function getTvaRateSale(): ?Tva
  192.     {
  193.         return $this->tvaRateSale;
  194.     }
  195.     public function setTvaRateSale(?Tva $tvaRateSale): self
  196.     {
  197.         $this->tvaRateSale $tvaRateSale;
  198.         return $this;
  199.     }
  200.     public function getWebsite(): ?string
  201.     {
  202.         return $this->website;
  203.     }
  204.     public function setWebsite(string $website): self
  205.     {
  206.         $this->website $website;
  207.         return $this;
  208.     }
  209. }