<?phpnamespace App\Entity;use App\Repository\AdminPromoRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=AdminPromoRepository::class) */class AdminPromo{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="datetime_immutable") */ private $startAt; /** * @ORM\Column(type="datetime_immutable") */ private $endAt; /** * @ORM\Column(type="boolean") */ private $active; /** * @ORM\Column(type="float") */ private $value; /** * @ORM\Column(type="datetime_immutable") */ private $created_at; public function __construct() { $this->created_at = new \DateTimeImmutable(); $this->active = true; // Default to active } public function getId(): ?int { return $this->id; } public function getStartAt(): ?\DateTimeImmutable { return $this->startAt; } public function setStartAt(\DateTimeImmutable $startAt): self { $this->startAt = $startAt; return $this; } public function getEndAt(): ?\DateTimeImmutable { return $this->endAt; } public function setEndAt(\DateTimeImmutable $endAt): self { $this->endAt = $endAt; return $this; } public function isActive(): ?bool { return $this->active; } public function setActive(bool $active): self { $this->active = $active; return $this; } public function getValue(): ?float { return $this->value; } public function setValue(float $value): self { $this->value = $value; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->created_at; } public function setCreatedAt(\DateTimeImmutable $created_at): self { $this->created_at = $created_at; return $this; }}