src/Entity/IndustryList.php line 11

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