src/Entity/EventCustomDate.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * EventCustomDate
  8.  *
  9.  * @ORM\Table(name="event_custom_date")
  10.  * @ORM\Entity(repositoryClass="App\Repository\EventCustomDateRepository")
  11.  */
  12. class EventCustomDate
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      * @ORM\Column(name="id", type="integer")
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var string
  24.      *
  25.      * @ORM\Column(name="eid", type="string", length=255)
  26.      */
  27.     private $eid;
  28.     /**
  29.      * @var \DateTime
  30.      *
  31.      * @ORM\Column(name="date", type="date")
  32.      */
  33.     private $date;
  34.     /**
  35.      * @var \DateTime
  36.      *
  37.      * @ORM\Column(name="time", type="time")
  38.      */
  39.     private $time;
  40.     // --- Getters & Setters ---
  41.     public function getId()
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function setEid($eid)
  46.     {
  47.         $this->eid $eid;
  48.         return $this;
  49.     }
  50.     public function getEid()
  51.     {
  52.         return $this->eid;
  53.     }
  54.     public function setDate($date)
  55.     {
  56.         $this->date $date;
  57.         return $this;
  58.     }
  59.     public function getDate()
  60.     {
  61.         return $this->date;
  62.     }
  63.     public function setTime($time)
  64.     {
  65.         $this->time $time;
  66.         return $this;
  67.     }
  68.     public function getTime()
  69.     {
  70.         return $this->time;
  71.     }
  72. }