src/Entity/CitiesList.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\IdTrait;
  4. use App\Repository\CitiesListRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=CitiesListRepository::class)
  8.  */
  9. class CitiesList
  10. {
  11.     use IdTrait;
  12.     /**
  13.      * @ORM\Column(type="string", length=255)
  14.      */
  15.     private $name;
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $position;
  20.     /**
  21.      * @ORM\Column(type="boolean")
  22.      */
  23.     private $active;
  24.     /**
  25.      * @ORM\Column(type="datetime")
  26.      */
  27.     private $update_at;
  28.     /**
  29.      * @ORM\Column(type="datetime")
  30.      */
  31.     private $created_at;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $searchSlug;
  36.     public function __construct($name, $searchSlug, $position, $active, $update_at, $created_at){
  37.         $this->name = $name;
  38.         $this->searchSlug = $searchSlug;
  39.         $this->position = $position;
  40.         $this->active = $active;
  41.         $this->update_at = $update_at;
  42.         $this->created_at = $created_at;
  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 getPosition(): ?int
  54.     {
  55.         return $this->position;
  56.     }
  57.     public function setPosition(int $position): self
  58.     {
  59.         $this->position = $position;
  60.         return $this;
  61.     }
  62.     public function getActive(): ?bool
  63.     {
  64.         return $this->active;
  65.     }
  66.     public function setActive(bool $active): self
  67.     {
  68.         $this->active = $active;
  69.         return $this;
  70.     }
  71.     public function getUpdateAt(): ?\DateTimeInterface
  72.     {
  73.         return $this->update_at;
  74.     }
  75.     public function setUpdateAt(\DateTimeInterface $update_at): self
  76.     {
  77.         $this->update_at = $update_at;
  78.         return $this;
  79.     }
  80.     public function getCreatedAt(): ?\DateTimeInterface
  81.     {
  82.         return $this->created_at;
  83.     }
  84.     public function setCreatedAt(\DateTimeInterface $created_at): self
  85.     {
  86.         $this->created_at = $created_at;
  87.         return $this;
  88.     }
  89.     public function getSearchSlug(): ?string
  90.     {
  91.         return $this->searchSlug;
  92.     }
  93.     public function setSearchSlug(?string $searchSlug): self
  94.     {
  95.         $this->searchSlug = $searchSlug;
  96.         return $this;
  97.     }
  98. }