src/Entity/Company.php line 11

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. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\CompanyRepository")
  7.  */
  8. class Company
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $name;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $logo;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $footerLogo;
  28.     /**
  29.      * @ORM\Column(type="text", nullable=true)
  30.      */
  31.     private $address;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $region;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $tva;
  40.     /**
  41.      * @ORM\Column(type="string", length=255, nullable=true)
  42.      */
  43.     private $mail;
  44.     /**
  45.      * @ORM\Column(type="string", length=255, nullable=true)
  46.      */
  47.     private $website;
  48.     /**
  49.      * @ORM\Column(type="string", length=20, nullable=true)
  50.      */
  51.     private $phone;
  52.     /**
  53.      * @ORM\Column(type="string", length=20, nullable=true)
  54.      */
  55.     private $mobile;
  56.     /**
  57.      * @ORM\Column(type="string", length=255, nullable=true)
  58.      */
  59.     private $title// SEO title
  60.     /**
  61.      * @ORM\Column(type="text", nullable=true)
  62.      */
  63.     private $description// SEO description
  64.     /**
  65.      * @ORM\Column(type="text", nullable=true)
  66.      */
  67.     private $keywords// SEO keywords
  68.     /**
  69.      * @ORM\Column(type="json", nullable=true)
  70.      */
  71.     private $socialLinks;
  72.     /**
  73.      * @ORM\Column(type="datetime")
  74.      * @Gedmo\Timestampable(on="update")
  75.      */
  76.     private $updated_at;
  77.     public function setName(string $name): self
  78.     {
  79.         $this->name $name;
  80.         return $this;
  81.     }
  82.     public function getName(): ?string
  83.     {
  84.         return $this->name;
  85.     }
  86.     public function setLogo(string $logo): self
  87.     {
  88.         $this->logo $logo;
  89.         return $this;
  90.     }
  91.     public function getLogo(): ?string
  92.     {
  93.         return $this->logo;
  94.     }
  95.     public function setFooterLogo(string $footerLogo): self
  96.     {
  97.         $this->footerLogo $footerLogo;
  98.         return $this;
  99.     }
  100.     public function getFooterLogo(): ?string
  101.     {
  102.         return $this->footerLogo;
  103.     }
  104.     public function setAddress(string $address): self
  105.     {
  106.         $this->address $address;
  107.         return $this;
  108.     }
  109.     public function getAddress(): ?string
  110.     {
  111.         return $this->address;
  112.     }
  113.     public function setRegion(string $region): self
  114.     {
  115.         $this->region $region;
  116.         return $this;
  117.     }
  118.     public function getRegion(): ?string
  119.     {
  120.         return $this->region;
  121.     }
  122.     public function setPhone(string $phone): self
  123.     {
  124.         $this->phone $phone;
  125.         return $this;
  126.     }
  127.     public function getPhone(): ?string
  128.     {
  129.         return $this->phone;
  130.     }
  131.     public function setMobile(string $mobile): self
  132.     {
  133.         $this->mobile $mobile;
  134.         return $this;
  135.     }
  136.     public function getMobile(): ?string
  137.     {
  138.         return $this->mobile;
  139.     }
  140.     public function setTitle(string $title): self
  141.     {
  142.         $this->title $title;
  143.         return $this;
  144.     }
  145.     public function getTitle(): ?string
  146.     {
  147.         return $this->title;
  148.     }
  149.     public function setDescription(string $description): self
  150.     {
  151.         $this->description $description;
  152.         return $this;
  153.     }
  154.     public function getDescription(): ?string
  155.     {
  156.         return $this->description;
  157.     }
  158.     public function setKeywords(string $keywords): self
  159.     {
  160.         $this->keywords $keywords;
  161.         return $this;
  162.     }
  163.     public function setTva(string $tva): self
  164.     {
  165.         $this->tva $tva;
  166.         return $this;
  167.     }
  168.     public function getTva(): ?string
  169.     {
  170.         return $this->tva;
  171.     }
  172.     public function setMail(string $mail): self
  173.     {
  174.         $this->mail $mail;
  175.         return $this;
  176.     }
  177.     public function getMail(): ?string
  178.     {
  179.         return $this->mail;
  180.     }
  181.     public function setWebsite(string $website): self
  182.     {
  183.         $this->website $website;
  184.         return $this;
  185.     }
  186.     public function getWebsite(): ?string
  187.     {
  188.         return $this->website;
  189.     }
  190.     public function getKeywords(): ?string
  191.     {
  192.         return $this->keywords;
  193.     }
  194.     public function setSocialLinks(array $socialLinks): self
  195.     {
  196.         $this->socialLinks $socialLinks;
  197.         return $this;
  198.     }
  199.     public function getSocialLinks(): ?array
  200.     {
  201.         return $this->socialLinks;
  202.     }
  203. }