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

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Schedules
  6.  *
  7.  * @ORM\Table(name="schedules", uniqueConstraints={@ORM\UniqueConstraint(name="idspectacle_2", columns={"idspectacle", "date", "hour", "idcontact"})}, indexes={@ORM\Index(name="idcontact_festival", columns={"idcontact_festival"}), @ORM\Index(name="idcontact", columns={"idcontact"}), @ORM\Index(name="is_creation", columns={"is_creation"}), @ORM\Index(name="is_cancelled", columns={"is_cancelled"}), @ORM\Index(name="date", columns={"date"}), @ORM\Index(name="idextranetuser", columns={"idextranetuser"}), @ORM\Index(name="IDX_313BDC8E9B4BDF01", columns={"idspectacle"})})
  8.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\SchedulesRepository")
  9.  */
  10. class Schedules
  11. {
  12.     const URL_THTV 'thnet-yvestan';
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="idschedule", type="integer", nullable=false, options={"unsigned"=true})
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $idschedule;
  21.     /**
  22.      * @var \DateTime
  23.      *
  24.      * @ORM\Column(name="date", type="date", nullable=false, options={"default"="0000-00-00"})
  25.      */
  26.     private $date '0000-00-00';
  27.     /**
  28.      * @var string|null
  29.      *
  30.      * @ORM\Column(name="hour", type="string", length=5, nullable=true, options={"fixed"=true})
  31.      */
  32.     private $hour;
  33.     /**
  34.      * @var bool|null
  35.      *
  36.      * @ORM\Column(name="is_creation", type="boolean", nullable=true)
  37.      */
  38.     private $isCreation;
  39.     /**
  40.      * @var bool|null
  41.      *
  42.      * @ORM\Column(name="is_cancelled", type="boolean", nullable=true)
  43.      */
  44.     private $isCancelled;
  45.     /**
  46.      * @var int|null
  47.      *
  48.      * @ORM\Column(name="idcontact_festival", type="integer", nullable=true, options={"unsigned"=true})
  49.      */
  50.     private $idcontactFestival;
  51.     /**
  52.      * @var string|null
  53.      *
  54.      * @ORM\Column(name="url_spectacle", type="string", length=255, nullable=true)
  55.      */
  56.     private $urlSpectacle;
  57.     /**
  58.      * @var string|null
  59.      *
  60.      * @ORM\Column(name="url_booking", type="string", length=255, nullable=true)
  61.      */
  62.     private $urlBooking;
  63.     /**
  64.      * @var string|null
  65.      *
  66.      * @ORM\Column(name="note", type="text", length=65535, nullable=true)
  67.      */
  68.     private $note;
  69.     /**
  70.      * @var \DateTime|null
  71.      *
  72.      * @ORM\Column(name="dateupdate", type="datetime", nullable=true)
  73.      */
  74.     private $dateupdate;
  75.     /**
  76.      * @var \DateTime|null
  77.      *
  78.      * @ORM\Column(name="dateinsert", type="datetime", nullable=true)
  79.      */
  80.     private $dateinsert;
  81.     /**
  82.      * @var bool
  83.      *
  84.      * @ORM\Column(name="publish", type="boolean", nullable=false)
  85.      */
  86.     private $publish;
  87.     /**
  88.      * @var bool
  89.      *
  90.      * @ORM\Column(name="valid", type="boolean", nullable=false)
  91.      */
  92.     private $valid;
  93.     /**
  94.      * @var \Spectacles
  95.      *
  96.      * @ORM\ManyToOne(targetEntity="Spectacles", inversedBy="schedules")
  97.      * @ORM\JoinColumns({
  98.      *   @ORM\JoinColumn(name="idspectacle", referencedColumnName="idspectacle")
  99.      * })
  100.      */
  101.     private $idspectacle;
  102.     /**
  103.      * @var \Contacts
  104.      *
  105.      * @ORM\ManyToOne(targetEntity="Contacts")
  106.      * @ORM\JoinColumns({
  107.      *   @ORM\JoinColumn(name="idcontact", referencedColumnName="idcontact")
  108.      * })
  109.      */
  110.     private $idcontact;
  111.     /**
  112.      * @var \Extranetusers
  113.      *
  114.      * @ORM\ManyToOne(targetEntity="Extranetusers")
  115.      * @ORM\JoinColumns({
  116.      *   @ORM\JoinColumn(name="idextranetuser", referencedColumnName="idextranetuser")
  117.      * })
  118.      */
  119.     private $idextranetuser;
  120.     /**
  121.      * Get idschedule.
  122.      *
  123.      * @return int
  124.      */
  125.     public function getIdschedule()
  126.     {
  127.         return $this->idschedule;
  128.     }
  129.     /**
  130.      * Set date.
  131.      *
  132.      * @param \DateTime $date
  133.      *
  134.      * @return Schedules
  135.      */
  136.     public function setDate($date)
  137.     {
  138.         $this->date $date;
  139.         return $this;
  140.     }
  141.     /**
  142.      * Get date.
  143.      *
  144.      * @return \DateTime
  145.      */
  146.     public function getDate()
  147.     {
  148.         return $this->date;
  149.     }
  150.     /**
  151.      * Set hour.
  152.      *
  153.      * @param string|null $hour
  154.      *
  155.      * @return Schedules
  156.      */
  157.     public function setHour($hour null)
  158.     {
  159.         $this->hour $hour;
  160.         return $this;
  161.     }
  162.     /**
  163.      * Get hour.
  164.      *
  165.      * @return string|null
  166.      */
  167.     public function getHour()
  168.     {
  169.         return $this->hour;
  170.     }
  171.     /**
  172.      * Set isCreation.
  173.      *
  174.      * @param bool|null $isCreation
  175.      *
  176.      * @return Schedules
  177.      */
  178.     public function setIsCreation($isCreation null)
  179.     {
  180.         $this->isCreation $isCreation;
  181.         return $this;
  182.     }
  183.     /**
  184.      * Get isCreation.
  185.      *
  186.      * @return bool|null
  187.      */
  188.     public function getIsCreation()
  189.     {
  190.         return $this->isCreation;
  191.     }
  192.     /**
  193.      * Set isCancelled.
  194.      *
  195.      * @param bool|null $isCancelled
  196.      *
  197.      * @return Schedules
  198.      */
  199.     public function setIsCancelled($isCancelled null)
  200.     {
  201.         $this->isCancelled $isCancelled;
  202.         return $this;
  203.     }
  204.     /**
  205.      * Get isCancelled.
  206.      *
  207.      * @return bool|null
  208.      */
  209.     public function getIsCancelled()
  210.     {
  211.         return $this->isCancelled;
  212.     }
  213.     /**
  214.      * Set idcontactFestival.
  215.      *
  216.      * @param int|null $idcontactFestival
  217.      *
  218.      * @return Schedules
  219.      */
  220.     public function setIdcontactFestival($idcontactFestival null)
  221.     {
  222.         $this->idcontactFestival $idcontactFestival;
  223.         return $this;
  224.     }
  225.     /**
  226.      * Get idcontactFestival.
  227.      *
  228.      * @return int|null
  229.      */
  230.     public function getIdcontactFestival()
  231.     {
  232.         return $this->idcontactFestival;
  233.     }
  234.     /**
  235.      * Set urlSpectacle.
  236.      *
  237.      * @param string|null $urlSpectacle
  238.      *
  239.      * @return Schedules
  240.      */
  241.     public function setUrlSpectacle($urlSpectacle null)
  242.     {
  243.         $this->urlSpectacle $urlSpectacle;
  244.         return $this;
  245.     }
  246.     /**
  247.      * Get urlSpectacle.
  248.      *
  249.      * @return string|null
  250.      */
  251.     public function getUrlSpectacle()
  252.     {
  253.         return $this->urlSpectacle;
  254.     }
  255.     /**
  256.      * Set urlBooking.
  257.      *
  258.      * @param string|null $urlBooking
  259.      *
  260.      * @return Schedules
  261.      */
  262.     public function setUrlBooking($urlBooking null)
  263.     {
  264.         $this->urlBooking $urlBooking;
  265.         return $this;
  266.     }
  267.     /**
  268.      * Get urlBooking.
  269.      *
  270.      * @return string|null
  271.      */
  272.     public function getUrlBooking()
  273.     {
  274.         return $this->urlBooking;
  275.     }
  276.     /**
  277.      * Set note.
  278.      *
  279.      * @param string|null $note
  280.      *
  281.      * @return Schedules
  282.      */
  283.     public function setNote($note null)
  284.     {
  285.         $this->note $note;
  286.         return $this;
  287.     }
  288.     /**
  289.      * Get note.
  290.      *
  291.      * @return string|null
  292.      */
  293.     public function getNote()
  294.     {
  295.         return $this->note;
  296.     }
  297.     /**
  298.      * Set dateupdate.
  299.      *
  300.      * @param \DateTime|null $dateupdate
  301.      *
  302.      * @return Schedules
  303.      */
  304.     public function setDateupdate($dateupdate null)
  305.     {
  306.         $this->dateupdate $dateupdate;
  307.         return $this;
  308.     }
  309.     /**
  310.      * Get dateupdate.
  311.      *
  312.      * @return \DateTime|null
  313.      */
  314.     public function getDateupdate()
  315.     {
  316.         return $this->dateupdate;
  317.     }
  318.     /**
  319.      * Set dateinsert.
  320.      *
  321.      * @param \DateTime|null $dateinsert
  322.      *
  323.      * @return Schedules
  324.      */
  325.     public function setDateinsert($dateinsert null)
  326.     {
  327.         $this->dateinsert $dateinsert;
  328.         return $this;
  329.     }
  330.     /**
  331.      * Get dateinsert.
  332.      *
  333.      * @return \DateTime|null
  334.      */
  335.     public function getDateinsert()
  336.     {
  337.         return $this->dateinsert;
  338.     }
  339.     /**
  340.      * Set publish.
  341.      *
  342.      * @param bool $publish
  343.      *
  344.      * @return Schedules
  345.      */
  346.     public function setPublish($publish)
  347.     {
  348.         $this->publish $publish;
  349.         return $this;
  350.     }
  351.     /**
  352.      * Get publish.
  353.      *
  354.      * @return bool
  355.      */
  356.     public function getPublish()
  357.     {
  358.         return $this->publish;
  359.     }
  360.     /**
  361.      * Set valid.
  362.      *
  363.      * @param bool $valid
  364.      *
  365.      * @return Schedules
  366.      */
  367.     public function setValid($valid)
  368.     {
  369.         $this->valid $valid;
  370.         return $this;
  371.     }
  372.     /**
  373.      * Get valid.
  374.      *
  375.      * @return bool
  376.      */
  377.     public function getValid()
  378.     {
  379.         return $this->valid;
  380.     }
  381.     /**
  382.      * Set idspectacle.
  383.      *
  384.      * @param \Spectacles|null $idspectacle
  385.      *
  386.      * @return Schedules
  387.      */
  388.     public function setIdspectacle(Spectacles $idspectacle null)
  389.     {
  390.         $this->idspectacle $idspectacle;
  391.         return $this;
  392.     }
  393.     /**
  394.      * Get idspectacle.
  395.      *
  396.      * @return \Spectacles|null
  397.      */
  398.     public function getIdspectacle()
  399.     {
  400.         return $this->idspectacle;
  401.     }
  402.     /**
  403.      * Set idcontact.
  404.      *
  405.      * @param \Contacts|null $idcontact
  406.      *
  407.      * @return Schedules
  408.      */
  409.     public function setIdcontact(Contacts $idcontact null)
  410.     {
  411.         $this->idcontact $idcontact;
  412.         return $this;
  413.     }
  414.     /**
  415.      * Get idcontact.
  416.      *
  417.      * @return \Contacts|null
  418.      */
  419.     public function getContact()
  420.     {
  421.         return $this->idcontact;
  422.     }
  423.     /**
  424.      * Set idextranetuser.
  425.      *
  426.      * @param \Extranetusers|null $idextranetuser
  427.      *
  428.      * @return Schedules
  429.      */
  430.     public function setIdextranetuser(Extranetusers $idextranetuser null)
  431.     {
  432.         $this->idextranetuser $idextranetuser;
  433.         return $this;
  434.     }
  435.     /**
  436.      * Get idextranetuser.
  437.      *
  438.      * @return \Extranetusers|null
  439.      */
  440.     public function getIdextranetuser()
  441.     {
  442.         return $this->idextranetuser;
  443.     }
  444. }