src/Entity/PopularList.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PopularListRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PopularListRepository::class)
  7.  */
  8. class PopularList
  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, nullable=true)
  18.      */
  19.     private $name;
  20.      /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $nameEn;
  24.     /**
  25.      * @ORM\Column(type="datetime", nullable=true)
  26.      */
  27.     private $created_at;
  28.     /**
  29.      * @ORM\Column(type="integer", nullable=true)
  30.      */
  31.     private $position;
  32.     /**
  33.      * @ORM\Column(type="boolean", nullable=true)
  34.      */
  35.     private $active;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $id_item;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getName(): ?string
  45.     {
  46.         return $this->name;
  47.     }
  48.     public function setName(?string $name): self
  49.     {
  50.         $this->name = $name;
  51.         return $this;
  52.     }
  53.     public function getNameEn(): ?string
  54.     {
  55.         return $this->nameEn;
  56.     }
  57.     public function setNameEn(?string $nameEn): self
  58.     {
  59.         $this->nameEn = $nameEn;
  60.         return $this;
  61.     }
  62.     public function getCreatedAt(): ?\DateTimeInterface
  63.     {
  64.         return $this->created_at;
  65.     }
  66.     public function setCreatedAt(?\DateTimeInterface $created_at): self
  67.     {
  68.         $this->created_at = $created_at;
  69.         return $this;
  70.     }
  71.     public function getPosition(): ?int
  72.     {
  73.         return $this->position;
  74.     }
  75.     public function setPosition(?int $position): self
  76.     {
  77.         $this->position = $position;
  78.         return $this;
  79.     }
  80.     public function getActive(): ?bool
  81.     {
  82.         return $this->active;
  83.     }
  84.     public function setActive(?bool $active): self
  85.     {
  86.         $this->active = $active;
  87.         return $this;
  88.     }
  89.     public function getIdItem(): ?string
  90.     {
  91.         return $this->id_item;
  92.     }
  93.     public function setIdItem(?string $id_item): self
  94.     {
  95.         $this->id_item = $id_item;
  96.         return $this;
  97.     }
  98. }