src/MDS/VenuesBundle/Entity/ReservationAgendaItem.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\MDS\VenuesBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ReservationAgendaItem
  6.  *
  7.  * @ORM\Table(name="reservation_agenda_item")
  8.  * @ORM\Entity(repositoryClass="App\MDS\VenuesBundle\Repository\ReservationAgendaItemRepository")
  9.  * @ORM\HasLifecycleCallbacks()
  10.  */
  11. class ReservationAgendaItem
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var int
  23.      *
  24.      * @ORM\Column(name="reservationId", type="integer")
  25.      */
  26.     private $reservationId;
  27.     /**
  28.      * @var int
  29.      * Número para ordenar el item dentro de la agenda
  30.      *
  31.      * @ORM\Column(name="rankListing", type="integer")
  32.      */
  33.     private $rankListing;
  34.     /**
  35.      * @var string
  36.      * Titulo que permite organizar y englobar los items, establece un nivel
  37.      * de jerarquia para la tabulación
  38.      *
  39.      * @ORM\Column(name="titleOne", type="string", length=555)
  40.      */
  41.     private $titleOne;
  42.     /**
  43.      * @var string
  44.      * Titulo que permite organizar y englobar los items, establece un nivel
  45.      * de jerarquia para la tabulación
  46.      *
  47.      * @ORM\Column(name="titleTwo", type="string", length=555, nullable=true)
  48.      */
  49.     private $titleTwo;
  50.     /**
  51.      * @var string
  52.      * Titulo que permite organizar y englobar los items, establece un nivel
  53.      * de jerarquia para la tabulación
  54.      *
  55.      * @ORM\Column(name="titleThree", type="string", length=555, nullable=true)
  56.      */
  57.     private $titleThree;
  58.     /**
  59.      * @var \DateTime
  60.      *
  61.      * @ORM\Column(name="dateStart", type="datetime", nullable=true)
  62.      */
  63.     private $dateStart;
  64.     /**
  65.      * @var \DateTime
  66.      *
  67.      * @ORM\Column(name="dateEnd", type="datetime", nullable=true)
  68.      */
  69.     private $dateEnd;
  70.     /**
  71.      * @var string
  72.      *
  73.      * @ORM\Column(name="description", type="string", length=555)
  74.      */
  75.     private $description;
  76.     /**
  77.      * @ORM\Column(name="picture", type="string", length=255, nullable=true)
  78.      *
  79.      */
  80.     private $picture;
  81.     /**
  82.      * @var int
  83.      * Id del servicio o entidad que creo el AgendaItem (ejem proceso
  84.      * automatico de creacion desde un servicio)
  85.      *
  86.      * @ORM\Column(name="sourceId", type="integer", nullable=true)
  87.      */
  88.     private $sourceId;
  89.     /**
  90.      * @var string
  91.      *
  92.      * @ORM\Column(name="sourceType", type="string", length=55, nullable=true)
  93.      */
  94.     private $sourceType;
  95.     /**
  96.      * @var \DateTime
  97.      *
  98.      * @ORM\Column(name="createdAt", type="datetime")
  99.      */
  100.     private $createdAt;
  101.     /**
  102.      * @var int
  103.      *
  104.      * @ORM\Column(name="createdId", type="integer")
  105.      */
  106.     private $createdId;
  107.     /**
  108.      * @var \DateTime
  109.      *
  110.      * @ORM\Column(name="updatedAt", type="datetime")
  111.      */
  112.     private $updatedAt;
  113.     /**
  114.      * @var int
  115.      *
  116.      * @ORM\Column(name="updatedId", type="integer")
  117.      */
  118.     private $updatedId;
  119.     /**
  120.      * Get id
  121.      *
  122.      * @return int
  123.      */
  124.     public function getId()
  125.     {
  126.         return $this->id;
  127.     }
  128.     /**
  129.      * Set reservationId
  130.      *
  131.      * @param integer $reservationId
  132.      *
  133.      * @return ReservationAgendaItem
  134.      */
  135.     public function setReservationId($reservationId)
  136.     {
  137.         $this->reservationId $reservationId;
  138.         return $this;
  139.     }
  140.     /**
  141.      * Get reservationId
  142.      *
  143.      * @return int
  144.      */
  145.     public function getReservationId()
  146.     {
  147.         return $this->reservationId;
  148.     }
  149.     /**
  150.      * Set rankListing
  151.      *
  152.      * @param integer $rankListing
  153.      *
  154.      * @return ReservationAgendaItem
  155.      */
  156.     public function setRankListing($rankListing)
  157.     {
  158.         $this->rankListing $rankListing;
  159.         return $this;
  160.     }
  161.     /**
  162.      * Get rankListing
  163.      *
  164.      * @return int
  165.      */
  166.     public function getRankListing()
  167.     {
  168.         return $this->rankListing;
  169.     }
  170.     /**
  171.      * Set titleOne
  172.      *
  173.      * @param string $titleOne
  174.      *
  175.      * @return ReservationAgendaItem
  176.      */
  177.     public function setTitleOne($titleOne)
  178.     {
  179.         $this->titleOne $titleOne;
  180.         return $this;
  181.     }
  182.     /**
  183.      * Get titleOne
  184.      *
  185.      * @return string
  186.      */
  187.     public function getTitleOne()
  188.     {
  189.         return $this->titleOne;
  190.     }
  191.     /**
  192.      * Set titleTwo
  193.      *
  194.      * @param string $titleTwo
  195.      *
  196.      * @return ReservationAgendaItem
  197.      */
  198.     public function setTitleTwo($titleTwo)
  199.     {
  200.         $this->titleTwo $titleTwo;
  201.         return $this;
  202.     }
  203.     /**
  204.      * Get titleTwo
  205.      *
  206.      * @return string
  207.      */
  208.     public function getTitleTwo()
  209.     {
  210.         return $this->titleTwo;
  211.     }
  212.     /**
  213.      * Set titleThree
  214.      *
  215.      * @param string $titleThree
  216.      *
  217.      * @return ReservationAgendaItem
  218.      */
  219.     public function setTitleThree($titleThree)
  220.     {
  221.         $this->titleThree $titleThree;
  222.         return $this;
  223.     }
  224.     /**
  225.      * Get titleThree
  226.      *
  227.      * @return string
  228.      */
  229.     public function getTitleThree()
  230.     {
  231.         return $this->titleThree;
  232.     }
  233.     /**
  234.      * Set dateStart
  235.      *
  236.      * @param \DateTime $dateStart
  237.      *
  238.      * @return ReservationAgendaItem
  239.      */
  240.     public function setDateStart($dateStart)
  241.     {
  242.         $this->dateStart $dateStart;
  243.         return $this;
  244.     }
  245.     /**
  246.      * Get dateStart
  247.      *
  248.      * @return \DateTime
  249.      */
  250.     public function getDateStart()
  251.     {
  252.         return $this->dateStart;
  253.     }
  254.     /**
  255.      * Set dateEnd
  256.      *
  257.      * @param \DateTime $dateEnd
  258.      *
  259.      * @return ReservationAgendaItem
  260.      */
  261.     public function setDateEnd($dateEnd)
  262.     {
  263.         $this->dateEnd $dateEnd;
  264.         return $this;
  265.     }
  266.     /**
  267.      * Get dateEnd
  268.      *
  269.      * @return \DateTime
  270.      */
  271.     public function getDateEnd()
  272.     {
  273.         return $this->dateEnd;
  274.     }
  275.     /**
  276.      * Set description
  277.      *
  278.      * @param string $description
  279.      *
  280.      * @return ReservationAgendaItem
  281.      */
  282.     public function setDescription($description)
  283.     {
  284.         $this->description $description;
  285.         return $this;
  286.     }
  287.     /**
  288.      * Get description
  289.      *
  290.      * @return string
  291.      */
  292.     public function getDescription()
  293.     {
  294.         return $this->description;
  295.     }
  296.     /**
  297.      * Set picture
  298.      *
  299.      * @param string $picture
  300.      *
  301.      * @return ReservationAgendaItem
  302.      */
  303.     public function setPicture($picture)
  304.     {
  305.         $this->picture $picture;
  306.         return $this;
  307.     }
  308.     /**
  309.      * Get picture
  310.      *
  311.      * @return string
  312.      */
  313.     public function getPicture()
  314.     {
  315.         return $this->picture;
  316.     }
  317.     /**
  318.      * Set sourceId
  319.      *
  320.      * @param integer $sourceId
  321.      *
  322.      * @return ReservationAgendaItem
  323.      */
  324.     public function setSourceId($sourceId)
  325.     {
  326.         $this->sourceId $sourceId;
  327.         return $this;
  328.     }
  329.     /**
  330.      * Get sourceId
  331.      *
  332.      * @return int
  333.      */
  334.     public function getSourceId()
  335.     {
  336.         return $this->sourceId;
  337.     }
  338.     /**
  339.      * Set sourceType
  340.      *
  341.      * @param string $sourceType
  342.      *
  343.      * @return ReservationAgendaItem
  344.      */
  345.     public function setSourceType($sourceType)
  346.     {
  347.         $this->sourceType $sourceType;
  348.         return $this;
  349.     }
  350.     /**
  351.      * Get sourceType
  352.      *
  353.      * @return string
  354.      */
  355.     public function getSourceType()
  356.     {
  357.         return $this->sourceType;
  358.     }
  359.     /**
  360.      * Set createdAt
  361.      *
  362.      * @param \DateTime $createdAt
  363.      *
  364.      * @return ReservationAgendaItem
  365.      */
  366.     public function setCreatedAt($createdAt)
  367.     {
  368.         $this->createdAt $createdAt;
  369.         return $this;
  370.     }
  371.     /**
  372.      * Get createdAt
  373.      *
  374.      * @return \DateTime
  375.      */
  376.     public function getCreatedAt()
  377.     {
  378.         return $this->createdAt;
  379.     }
  380.     /**
  381.      * Set createdId
  382.      *
  383.      * @param integer $createdId
  384.      *
  385.      * @return ReservationAgendaItem
  386.      */
  387.     public function setCreatedId($createdId)
  388.     {
  389.         $this->createdId $createdId;
  390.         return $this;
  391.     }
  392.     /**
  393.      * Get createdId
  394.      *
  395.      * @return int
  396.      */
  397.     public function getCreatedId()
  398.     {
  399.         return $this->createdId;
  400.     }
  401.     /**
  402.      * Set updatedId
  403.      *
  404.      * @param integer $updatedId
  405.      *
  406.      * @return ReservationAgendaItem
  407.      */
  408.     public function setUpdatedId($updatedId)
  409.     {
  410.         $this->updatedId $updatedId;
  411.         return $this;
  412.     }
  413.     /**
  414.      * Get updatedId
  415.      *
  416.      * @return int
  417.      */
  418.     public function getUpdatedId()
  419.     {
  420.         return $this->updatedId;
  421.     }
  422.     /**
  423.      * Set updatedAt
  424.      *
  425.      * @param \DateTime $updatedAt
  426.      *
  427.      * @return ReservationAgendaItem
  428.      */
  429.     public function setUpdatedAt($updatedAt)
  430.     {
  431.         $this->updatedAt $updatedAt;
  432.         return $this;
  433.     }
  434.     /**
  435.      * Get updatedAt
  436.      *
  437.      * @return \DateTime
  438.      */
  439.     public function getUpdatedAt()
  440.     {
  441.         return $this->updatedAt;
  442.     }
  443.     /**
  444.      * @ORM\PrePersist
  445.      */
  446.     public function setCreatedAtValue()
  447.     {
  448.         $this->createdAt = new \Datetime();
  449.     }
  450.     /**
  451.      * @ORM\PrePersist
  452.      * @ORM\PreUpdate
  453.      */
  454.     public function setUpdatedAtValue()
  455.     {
  456.         $this->updatedAt = new \Datetime();
  457.     }
  458. }