<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;use Gedmo\Translatable\Translatable;use Gedmo\Mapping\Annotation as Gedmo;use App\Entity\Trait\TranslatableLocale;use App\Repository\AbstractOptionRepository;/** * @ORM\Entity * @ORM\InheritanceType("SINGLE_TABLE") * @ORM\DiscriminatorColumn(name="discr", type="string") */class AbstractOption{ use TranslatableLocale; /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @Gedmo\Translatable * @ORM\Column(type="string", length=255) */ private $label; /** * @Gedmo\Translatable * @ORM\Column(type="text", nullable=true) */ private $description; /** * @Gedmo\Translatable * @ORM\Column(type="string", length=255, nullable=true) */ private $placeholderCommentary; /** * @ORM\Column(type="datetime", nullable=true) */ private $deletedAt; public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): self { $this->label = $label; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getPlaceholderCommentary(): ?string { return $this->placeholderCommentary; } public function setPlaceholderCommentary(?string $placeholderCommentary): self { $this->placeholderCommentary = $placeholderCommentary; return $this; } public function getEntitiesToRefresh(): array { $entitiesToRefresh = []; $entitiesToRefresh[] = $this; return $entitiesToRefresh; } public function getDeletedAt(): ?\DateTimeInterface { return $this->deletedAt; } public function setDeletedAt(?\DateTimeInterface $deletedAt): self { $this->deletedAt = $deletedAt; return $this; } public function isDeleted(): bool { return $this->deletedAt !== null; }}