<?phpnamespace App\Entity\Boutique\Evenement;use App\Entity\Media\Media;use App\Entity\PostType\PostTypeProduit;use App\Repository\Boutique\Evenement\EvenementRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: EvenementRepository::class)]class Evenement extends PostTypeProduit{ #[ORM\ManyToOne] private ?Media $media = null; #[ORM\Column(length: 255)] private ?string $accroche = null; #[ORM\Column(type: Types::TEXT)] private ?string $description = null; #[ORM\Column] private ?\DateTimeImmutable $publishedAt = null; #[ORM\Column(nullable: true)] private ?\DateTimeImmutable $unPublishedAt = null; #[ORM\Column(nullable: true)] private ?\DateTimeImmutable $publishedAtTime = null; #[ORM\Column(nullable: true)] private ?\DateTimeImmutable $unPublishedAtTime = null; #[ORM\Column(length: 255)] private ?string $lieu = null; #[ORM\ManyToOne] private ?Media $banniere = null; public function __construct() { parent::__construct(); date_default_timezone_set('Europe/Paris'); } public function getMedia(): ?Media { return $this->media; } public function setMedia(?Media $media): self { $this->media = $media; return $this; } public function getAccroche(): ?string { return $this->accroche; } public function setAccroche(string $accroche): self { $this->accroche = $accroche; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(string $description): self { $this->description = $description; return $this; } public function getPublishedAt(): ?\DateTimeImmutable { return $this->publishedAt; } public function setPublishedAt(\DateTimeImmutable $publishedAt): self { $this->publishedAt = $publishedAt; return $this; } public function getUnPublishedAt(): ?\DateTimeImmutable { return $this->unPublishedAt; } public function setUnPublishedAt(?\DateTimeImmutable $unPublishedAt): self { $this->unPublishedAt = $unPublishedAt; return $this; } public function getPublishedAtTime(): ?\DateTimeImmutable { return $this->publishedAtTime; } public function setPublishedAtTime(?\DateTimeImmutable $publishedAtTime): self { $this->publishedAtTime = $publishedAtTime; return $this; } public function getUnPublishedAtTime(): ?\DateTimeImmutable { return $this->unPublishedAtTime; } public function setUnPublishedAtTime(?\DateTimeImmutable $unPublishedAtTime): self { $this->unPublishedAtTime = $unPublishedAtTime; return $this; } public function getLieu(): ?string { return $this->lieu; } public function setLieu(string $lieu): self { $this->lieu = $lieu; return $this; } public function getBanniere(): ?Media { return $this->banniere; } public function setBanniere(?Media $banniere): self { $this->banniere = $banniere; return $this; }}