<?phpnamespace App\Entity;use App\Repository\ExtraRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ExtraRepository::class)]class Extra extends Product{ #[ORM\Column(length: 255)] private ?string $name = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $description = null; #[ORM\Column] private ?float $minPrice = null; #[ORM\Column] private ?bool $active = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $expireDate = null; #[ORM\ManyToOne] private ?ExtraType $extraType = null; public function getName(): ?string { return $this->name; } public function setName(string $name): static { $this->name = $name; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(string $description): static { $this->description = $description; return $this; } public function getMinPrice(): ?float { return $this->minPrice; } public function setMinPrice(float $minPrice): static { $this->minPrice = $minPrice; return $this; } public function __toString(): string { return $this->name; } public function getClass() : string { return "Extra"; } public function getIcon(): string { return "fe-box"; } public function isActive(): ?bool { return $this->active; } public function setActive(bool $active): static { $this->active = $active; return $this; } public function getExpireDate(): ?\DateTimeInterface { return $this->expireDate; } public function setExpireDate(\DateTimeInterface $expireDate): static { $this->expireDate = $expireDate; return $this; } public function getExtraType(): ?ExtraType { return $this->extraType; } public function setExtraType(?ExtraType $extraType): static { $this->extraType = $extraType; return $this; }}