src/Entity/Events.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use App\Repository\EventsRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=EventsRepository::class)
  9.  */
  10. class Events extends OSEntity
  11. {
  12.     /**
  13.      * @ORM\Column(type="date", nullable=true)
  14.      */
  15.     private $startDate;
  16.     /**
  17.      * @ORM\Column(type="time", nullable=true)
  18.      */
  19.     private $startTime;
  20.     /**
  21.      * @ORM\Column(type="date", nullable=true)
  22.      */
  23.     private $endDate;
  24.     /**
  25.      * @ORM\Column(type="time", nullable=true)
  26.      */
  27.     private $endTime;
  28.     /**
  29.      * @ORM\OneToOne(targetEntity="App\Entity\Albums", cascade={"persist","remove"}, orphanRemoval=true, fetch="EAGER")
  30.      * @ORM\JoinColumn(nullable=true)
  31.      */
  32.     private $album;
  33.     /**
  34.      * @ORM\OneToOne(targetEntity="App\Entity\Biblios", cascade={"persist","remove"}, orphanRemoval=true, fetch="EAGER")
  35.      * @ORM\JoinColumn(nullable=true)
  36.      */
  37.     private $biblio;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $place;
  42.     public function getStartDate(): ?\DateTimeInterface
  43.     {
  44.         return $this->startDate;
  45.     }
  46.     public function setStartDate(?\DateTimeInterface $startDate): self
  47.     {
  48.         $this->startDate $startDate;
  49.         return $this;
  50.     }
  51.     public function getStartTime(): ?\DateTimeInterface
  52.     {
  53.         return $this->startTime;
  54.     }
  55.     public function setStartTime(?\DateTimeInterface $startTime): self
  56.     {
  57.         $this->startTime $startTime;
  58.         return $this;
  59.     }
  60.     public function getEndDate(): ?\DateTimeInterface
  61.     {
  62.         return $this->endDate;
  63.     }
  64.     public function setEndDate(?\DateTimeInterface $endDate): self
  65.     {
  66.         $this->endDate $endDate;
  67.         return $this;
  68.     }
  69.     public function getEndTime(): ?\DateTimeInterface
  70.     {
  71.         return $this->endTime;
  72.     }
  73.     public function setEndTime(?\DateTimeInterface $endTime): self
  74.     {
  75.         $this->endTime $endTime;
  76.         return $this;
  77.     }
  78.     public function getName(): ?string
  79.     {
  80.         return $this->getTitle();
  81.     }
  82.     public function setName(?string $name): self
  83.     {
  84.         return $this->setTitle($name);
  85.     }
  86.     public function getDetails(): ?string
  87.     {
  88.         return $this->getContent();
  89.     }
  90.     public function setDetails(?string $details): self
  91.     {
  92.         return $this->setContent();
  93.     }
  94.     public function getCreatedAt(): ?\DateTimeInterface
  95.     {
  96.         return $this->createdAt;
  97.     }
  98.     public function getAlbum(): ?Albums
  99.     {
  100.         return $this->album;
  101.     }
  102.     public function setAlbum(?Albums $album): self
  103.     {
  104.         $this->album $album;
  105.         return $this;
  106.     }
  107.     public function getBiblio(): ?Biblios
  108.     {
  109.         return $this->biblio;
  110.     }
  111.     public function setBiblio(?Biblios $biblio): self
  112.     {
  113.         $this->biblio $biblio;
  114.         return $this;
  115.     }
  116.     public function getPlace(): ?string
  117.     {
  118.         return $this->place;
  119.     }
  120.     public function setPlace(?string $place): self
  121.     {
  122.         $this->place $place;
  123.         return $this;
  124.     }
  125. }