<?phpnamespace App\Entity;use App\Entity\Traits\IdTrait;use App\Repository\CitiesListRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=CitiesListRepository::class) */class CitiesList{ use IdTrait; /** * @ORM\Column(type="string", length=255) */ private $name; /** * @ORM\Column(type="integer") */ private $position; /** * @ORM\Column(type="boolean") */ private $active; /** * @ORM\Column(type="datetime") */ private $update_at; /** * @ORM\Column(type="datetime") */ private $created_at; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $searchSlug; public function __construct($name, $searchSlug, $position, $active, $update_at, $created_at){ $this->name = $name; $this->searchSlug = $searchSlug; $this->position = $position; $this->active = $active; $this->update_at = $update_at; $this->created_at = $created_at; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getPosition(): ?int { return $this->position; } public function setPosition(int $position): self { $this->position = $position; return $this; } public function getActive(): ?bool { return $this->active; } public function setActive(bool $active): self { $this->active = $active; return $this; } public function getUpdateAt(): ?\DateTimeInterface { return $this->update_at; } public function setUpdateAt(\DateTimeInterface $update_at): self { $this->update_at = $update_at; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->created_at; } public function setCreatedAt(\DateTimeInterface $created_at): self { $this->created_at = $created_at; return $this; } public function getSearchSlug(): ?string { return $this->searchSlug; } public function setSearchSlug(?string $searchSlug): self { $this->searchSlug = $searchSlug; return $this; }}