vendor/theatre/core/src/Entity/Newschedules.php line 13

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Newschedules
  6.  *
  7.  * @ORM\Table(name="newschedules", indexes={@ORM\Index(name="idcontact", columns={"idcontact"}), @ORM\Index(name="idnew", columns={"idnew"})})
  8.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\NewschedulesRepository")
  9.  */
  10. class Newschedules
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="idnewschedule", type="integer", nullable=false, options={"unsigned"=true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $idnewschedule;
  20.     /**
  21.      * @var \DateTime
  22.      *
  23.      * @ORM\Column(name="date", type="date", nullable=false)
  24.      */
  25.     private $date;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="hour", type="string", length=5, nullable=true, options={"fixed"=true})
  30.      */
  31.     private $hour;
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="note", type="text", length=65535, nullable=true)
  36.      */
  37.     private $note;
  38.     /**
  39.      * @var \News
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="News", inversedBy="schedules")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="idnew", referencedColumnName="idnew")
  44.      * })
  45.      */
  46.     private $idnew;
  47.     /**
  48.      * @var \Contacts
  49.      *
  50.      * @ORM\ManyToOne(targetEntity="Contacts")
  51.      * @ORM\JoinColumns({
  52.      *   @ORM\JoinColumn(name="idcontact", referencedColumnName="idcontact")
  53.      * })
  54.      */
  55.     private $idcontact;
  56.     /**
  57.      * Get idnewschedule.
  58.      *
  59.      * @return int
  60.      */
  61.     public function getIdnewschedule()
  62.     {
  63.         return $this->idnewschedule;
  64.     }
  65.     /**
  66.      * Set date.
  67.      *
  68.      * @param \DateTime $date
  69.      *
  70.      * @return Newschedules
  71.      */
  72.     public function setDate($date)
  73.     {
  74.         $this->date $date;
  75.         return $this;
  76.     }
  77.     /**
  78.      * Get date.
  79.      *
  80.      * @return \DateTime
  81.      */
  82.     public function getDate()
  83.     {
  84.         return $this->date;
  85.     }
  86.     /**
  87.      * Set hour.
  88.      *
  89.      * @param string|null $hour
  90.      *
  91.      * @return Newschedules
  92.      */
  93.     public function setHour($hour null)
  94.     {
  95.         $this->hour $hour;
  96.         return $this;
  97.     }
  98.     /**
  99.      * Get hour.
  100.      *
  101.      * @return string|null
  102.      */
  103.     public function getHour()
  104.     {
  105.         return $this->hour;
  106.     }
  107.     /**
  108.      * Set note.
  109.      *
  110.      * @param string|null $note
  111.      *
  112.      * @return Newschedules
  113.      */
  114.     public function setNote($note null)
  115.     {
  116.         $this->note $note;
  117.         return $this;
  118.     }
  119.     /**
  120.      * Get note.
  121.      *
  122.      * @return string|null
  123.      */
  124.     public function getNote()
  125.     {
  126.         return $this->note;
  127.     }
  128.     /**
  129.      * Set idnew.
  130.      *
  131.      * @param \News|null $idnew
  132.      *
  133.      * @return Newschedules
  134.      */
  135.     public function setIdnew(News $idnew null)
  136.     {
  137.         $this->idnew $idnew;
  138.         return $this;
  139.     }
  140.     /**
  141.      * Get idnew.
  142.      *
  143.      * @return \News|null
  144.      */
  145.     public function getIdnew()
  146.     {
  147.         return $this->idnew;
  148.     }
  149.     /**
  150.      * Set idcontact.
  151.      *
  152.      * @param \Contacts|null $idcontact
  153.      *
  154.      * @return Newschedules
  155.      */
  156.     public function setIdcontact(Contacts $idcontact null)
  157.     {
  158.         $this->idcontact $idcontact;
  159.         return $this;
  160.     }
  161.     /**
  162.      * Get idcontact.
  163.      *
  164.      * @return \Contacts|null
  165.      */
  166.     public function getIdcontact()
  167.     {
  168.         return $this->idcontact;
  169.     }
  170. }