src/Entity/System/Brand.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Brand
  6.  *
  7.  * @ORM\Table(name="ps_manufacturer")
  8.  *
  9.  * @ORM\Entity(repositoryClass="App\Repository\System\BrandRepository")
  10.  */
  11. class Brand
  12. {
  13.     public const INNOVAGOODS_BRAND_ID 2317;
  14.     public const VARIOS_BRAND_ID 2015;
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id_manufacturer", type="integer")
  19.      *
  20.      * @ORM\Id
  21.      *
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.     /**
  26.      * @var bool
  27.      *
  28.      * @ORM\Column(type="boolean", columnDefinition="tinyint(4)", options={"default" : 0})
  29.      */
  30.     private $active;
  31.     /**
  32.      * @var int
  33.      *
  34.      * @ORM\Column(type="integer", length=11, options={"default" : 0})
  35.      */
  36.     private $position;
  37.     /**
  38.      * @var string
  39.      *
  40.      * @ORM\Column(name="name", type="string")
  41.      */
  42.     private $name;
  43.     /**
  44.      * @var \DateTime|true
  45.      *
  46.      * @ORM\Column(type="datetime", options={"default" : "CURRENT_TIMESTAMP"}, nullable=true)
  47.      */
  48.     private $dateAdd;
  49.     /**
  50.      * @var \DateTime|true
  51.      *
  52.      * @ORM\Column(type="datetime", nullable=true)
  53.      */
  54.     private $dateUpd;
  55.     /**
  56.      * @var string|null
  57.      *
  58.      * @ORM\Column(type="string", nullable=true)
  59.      */
  60.     private $image;
  61.     /**
  62.      * @ORM\OneToMany(targetEntity="App\Entity\System\BrandLanguage", mappedBy="brand", orphanRemoval=true)
  63.      */
  64.     private $brandLanguages;
  65.     /**
  66.      * @var string|null
  67.      *
  68.      * @ORM\Column(type="string", nullable=true)
  69.      */
  70.     private $reference;
  71.     /**
  72.      * @return int
  73.      */
  74.     public function getId(): int
  75.     {
  76.         return $this->id;
  77.     }
  78.     /**
  79.      * @param int $id
  80.      *
  81.      * @return Brand
  82.      */
  83.     public function setId(int $id): Brand
  84.     {
  85.         $this->id $id;
  86.         return $this;
  87.     }
  88.     /**
  89.      * @return bool
  90.      */
  91.     public function isActive(): bool
  92.     {
  93.         return $this->active;
  94.     }
  95.     /**
  96.      * @param bool $active
  97.      *
  98.      * @return Brand
  99.      */
  100.     public function setActive(bool $active): Brand
  101.     {
  102.         $this->active $active;
  103.         return $this;
  104.     }
  105.     /**
  106.      * @return int
  107.      */
  108.     public function getPosition(): int
  109.     {
  110.         return $this->position;
  111.     }
  112.     /**
  113.      * @param int $position
  114.      *
  115.      * @return Brand
  116.      */
  117.     public function setPosition(int $position): Brand
  118.     {
  119.         $this->position $position;
  120.         return $this;
  121.     }
  122.     /**
  123.      * @return string
  124.      */
  125.     public function getName(): string
  126.     {
  127.         return $this->name;
  128.     }
  129.     /**
  130.      * @param string $name
  131.      *
  132.      * @return Brand
  133.      */
  134.     public function setName(string $name): Brand
  135.     {
  136.         $this->name $name;
  137.         return $this;
  138.     }
  139.     /**
  140.      * @return \DateTime|true
  141.      */
  142.     public function getDateAdd()
  143.     {
  144.         return $this->dateAdd;
  145.     }
  146.     /**
  147.      * @param \DateTime|true $dateAdd
  148.      *
  149.      * @return Brand
  150.      */
  151.     public function setDateAdd($dateAdd): Brand
  152.     {
  153.         $this->dateAdd $dateAdd;
  154.         return $this;
  155.     }
  156.     /**
  157.      * @return \DateTime|true
  158.      */
  159.     public function getDateUpd()
  160.     {
  161.         return $this->dateUpd;
  162.     }
  163.     /**
  164.      * @param \DateTime|true $dateUpd
  165.      *
  166.      * @return Brand
  167.      */
  168.     public function setDateUpd($dateUpd): Brand
  169.     {
  170.         $this->dateUpd $dateUpd;
  171.         return $this;
  172.     }
  173.     /**
  174.      * @return string|null
  175.      */
  176.     public function getImage(): ?string
  177.     {
  178.         return $this->image;
  179.     }
  180.     /**
  181.      * @param string|null $image
  182.      *
  183.      * @return Brand
  184.      */
  185.     public function setImage(?string $image): Brand
  186.     {
  187.         $this->image $image;
  188.         return $this;
  189.     }
  190.     /**
  191.      * @return mixed
  192.      */
  193.     public function getBrandLanguages()
  194.     {
  195.         return $this->brandLanguages;
  196.     }
  197.     /**
  198.      * @param mixed $brandLanguages
  199.      */
  200.     public function setBrandLanguages($brandLanguages): Brand
  201.     {
  202.         $this->brandLanguages $brandLanguages;
  203.         return $this;
  204.     }
  205.     public function getReference(): ?string
  206.     {
  207.         return $this->reference;
  208.     }
  209.     public function setReference(?string $reference): Brand
  210.     {
  211.         $this->reference $reference;
  212.         return $this;
  213.     }
  214. }