src/Entity/Boutique/Evenement/Evenement.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Boutique\Evenement;
  3. use App\Entity\Media\Media;
  4. use App\Entity\PostType\PostTypeProduit;
  5. use App\Repository\Boutique\Evenement\EvenementRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassEvenementRepository::class)]
  9. class Evenement extends PostTypeProduit
  10. {
  11.     #[ORM\ManyToOne]
  12.     private ?Media $media null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $accroche null;
  15.     #[ORM\Column(typeTypes::TEXT)]
  16.     private ?string $description null;
  17.     #[ORM\Column]
  18.     private ?\DateTimeImmutable $publishedAt null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?\DateTimeImmutable $unPublishedAt null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?\DateTimeImmutable $publishedAtTime null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?\DateTimeImmutable $unPublishedAtTime null;
  25.     #[ORM\Column(length255)]
  26.     private ?string $lieu null;
  27.     #[ORM\ManyToOne]
  28.     private ?Media $banniere null;
  29.     public function __construct()
  30.     {
  31.         parent::__construct();
  32.         date_default_timezone_set('Europe/Paris');
  33.     }
  34.     public function getMedia(): ?Media
  35.     {
  36.         return $this->media;
  37.     }
  38.     public function setMedia(?Media $media): self
  39.     {
  40.         $this->media $media;
  41.         return $this;
  42.     }
  43.     public function getAccroche(): ?string
  44.     {
  45.         return $this->accroche;
  46.     }
  47.     public function setAccroche(string $accroche): self
  48.     {
  49.         $this->accroche $accroche;
  50.         return $this;
  51.     }
  52.     public function getDescription(): ?string
  53.     {
  54.         return $this->description;
  55.     }
  56.     public function setDescription(string $description): self
  57.     {
  58.         $this->description $description;
  59.         return $this;
  60.     }
  61.     public function getPublishedAt(): ?\DateTimeImmutable
  62.     {
  63.         return $this->publishedAt;
  64.     }
  65.     public function setPublishedAt(\DateTimeImmutable $publishedAt): self
  66.     {
  67.         $this->publishedAt $publishedAt;
  68.         return $this;
  69.     }
  70.     public function getUnPublishedAt(): ?\DateTimeImmutable
  71.     {
  72.         return $this->unPublishedAt;
  73.     }
  74.     public function setUnPublishedAt(?\DateTimeImmutable $unPublishedAt): self
  75.     {
  76.         $this->unPublishedAt $unPublishedAt;
  77.         return $this;
  78.     }
  79.     public function getPublishedAtTime(): ?\DateTimeImmutable
  80.     {
  81.         return $this->publishedAtTime;
  82.     }
  83.     public function setPublishedAtTime(?\DateTimeImmutable $publishedAtTime): self
  84.     {
  85.         $this->publishedAtTime $publishedAtTime;
  86.         return $this;
  87.     }
  88.     public function getUnPublishedAtTime(): ?\DateTimeImmutable
  89.     {
  90.         return $this->unPublishedAtTime;
  91.     }
  92.     public function setUnPublishedAtTime(?\DateTimeImmutable $unPublishedAtTime): self
  93.     {
  94.         $this->unPublishedAtTime $unPublishedAtTime;
  95.         return $this;
  96.     }
  97.     public function getLieu(): ?string
  98.     {
  99.         return $this->lieu;
  100.     }
  101.     public function setLieu(string $lieu): self
  102.     {
  103.         $this->lieu $lieu;
  104.         return $this;
  105.     }
  106.     public function getBanniere(): ?Media
  107.     {
  108.         return $this->banniere;
  109.     }
  110.     public function setBanniere(?Media $banniere): self
  111.     {
  112.         $this->banniere $banniere;
  113.         return $this;
  114.     }
  115. }