<?phpnamespace App\Entity;use App\Config\FaqRouteEnum;use App\Repository\FaqRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: FaqRepository::class)]#[ORM\Table(name: 'faq')]#[ORM\Index(columns: ['route', 'routeParameter', 'isActive'], name: 'idx_faq_filter')]class Faq{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(type: Types::TEXT)] private string $question = ''; #[ORM\Column(type: Types::TEXT)] private string $answer = ''; #[ORM\Column(length: 100, enumType: FaqRouteEnum::class)] private ?FaqRouteEnum $route = null; #[ORM\Column(length: 255, nullable: true)] private ?string $routeParameter = null; #[ORM\Column] private bool $isActive = true; #[ORM\Column(name: 'sort_order')] private int $position = 0; #[ORM\Column(nullable: true)] private ?\DateTimeImmutable $deletedAt = null; public function getId(): ?int { return $this->id; } public function getQuestion(): string { return $this->question; } public function setQuestion(string $question): static { $this->question = $question; return $this; } public function getAnswer(): string { return $this->answer; } public function setAnswer(string $answer): static { $this->answer = $answer; return $this; } public function getRoute(): ?FaqRouteEnum { return $this->route; } public function setRoute(FaqRouteEnum $route): static { $this->route = $route; return $this; } public function getRouteParameter(): ?string { return $this->routeParameter; } public function setRouteParameter(?string $routeParameter): static { $this->routeParameter = $routeParameter; return $this; } public function isActive(): bool { return $this->isActive; } public function setIsActive(bool $isActive): static { $this->isActive = $isActive; return $this; } public function getPosition(): int { return $this->position; } public function setPosition(int $position): static { $this->position = $position; return $this; } public function getDeletedAt(): ?\DateTimeImmutable { return $this->deletedAt; } public function setDeletedAt(?\DateTimeImmutable $deletedAt): static { $this->deletedAt = $deletedAt; return $this; }}