src/MDS/VenuesBundle/Entity/ReservationVisit.php line 17

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\MDS\VenuesBundle\Entity;
  4. use App\Entity\Space;
  5. use App\Entity\User;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * ReservationVisit
  9.  *
  10.  * @ORM\Table(name="reservation_visit")
  11.  * @ORM\Entity(repositoryClass="App\MDS\VenuesBundle\Repository\ReservationVisitRepository")
  12.  */
  13. class ReservationVisit
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=User::class)
  25.      * @ORM\JoinColumn(name="agentId", referencedColumnName="id", nullable=false)
  26.      */
  27.     private ?User $agent null;
  28.     /**
  29.      * @var int|null
  30.      *
  31.      * @ORM\Column(name="clientId", type="integer", nullable=true)
  32.      */
  33.     private $clientId;
  34.     /**
  35.      * @var string|null
  36.      *
  37.      * @ORM\Column(name="clientName", type="string", length=255, nullable=true)
  38.      */
  39.     private $clientName;
  40.     /**
  41.      * @var string|null
  42.      *
  43.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  44.      */
  45.     private $title;
  46.     /**
  47.      * @var int|null
  48.      *
  49.      * @ORM\Column(name="idLounge", type="integer", nullable=true)
  50.      */
  51.     private $idLounge;
  52.     /**
  53.      * @var \DateTime|null
  54.      *
  55.      * @ORM\Column(name="dateStart", type="datetime", nullable=true)
  56.      */
  57.     private $dateStart;
  58.     /**
  59.      * @var \DateTime|null
  60.      *
  61.      * @ORM\Column(name="dateEnd", type="datetime", nullable=true)
  62.      */
  63.     private $dateEnd;
  64.     /**
  65.      * @var int|null
  66.      *
  67.      * @ORM\Column(name="servicePrice", type="integer", nullable=true)
  68.      */
  69.     private $servicePrice;
  70.     /**
  71.      * @var int|null
  72.      *
  73.      * @ORM\Column(name="idReservation", type="integer", nullable=true)
  74.      */
  75.     private $idReservation;
  76.     /**
  77.      * @var int|null
  78.      *
  79.      * @ORM\Column(name="pax", type="integer", nullable=true)
  80.      */
  81.     private $pax;
  82.     /**
  83.      * @var string|null
  84.      *
  85.      * @ORM\Column(name="type", type="string", length=255, nullable=true)
  86.      */
  87.     private $type;
  88.     /**
  89.      * @var string
  90.      *
  91.      * @ORM\Column(name="hourStart", type="string", length=255)
  92.      */
  93.     private $hourStart;
  94.     /**
  95.      * @var string
  96.      *
  97.      * @ORM\Column(name="minStart", type="string", length=255)
  98.      */
  99.     private $minStart;
  100.     /**
  101.      * @var string
  102.      *
  103.      * @ORM\Column(name="hourEnd", type="string", length=255)
  104.      */
  105.     private $hourEnd;
  106.     /**
  107.      * @var string
  108.      *
  109.      * @ORM\Column(name="minEnd", type="string", length=255)
  110.      */
  111.     private $minEnd;
  112.     /**
  113.      * @var \DateTime
  114.      *
  115.      * @ORM\Column(name="createdAt", type="datetime")
  116.      */
  117.     private $createdAt;
  118.     /**
  119.      * @var int
  120.      *
  121.      * @ORM\Column(name="createdId", type="integer")
  122.      */
  123.     private $createdId;
  124.     /**
  125.      * @var \DateTime
  126.      *
  127.      * @ORM\Column(name="updatedAt", type="datetime")
  128.      */
  129.     private $updatedAt;
  130.     /**
  131.      * @var int
  132.      *
  133.      * @ORM\Column(name="updatedId", type="integer")
  134.      */
  135.     private $updatedId;
  136.     /**
  137.      * @ORM\ManyToOne(targetEntity="App\Entity\Space")
  138.      * @ORM\JoinColumn(name="space_id", referencedColumnName="id", nullable=true, onDelete="SET NULL")
  139.      */
  140.     private $space;
  141.     /**
  142.      * @var int|null
  143.      *
  144.      * @ORM\Column(name="idLoungeDetails", type="integer", nullable=true)
  145.      */
  146.     private $idLoungeDetails;
  147.     public function getId(): ?int
  148.     {
  149.         return $this->id;
  150.     }
  151.     public function getAgent(): ?User
  152.     {
  153.         return $this->agent;
  154.     }
  155.     public function setAgent(?User $agent): self
  156.     {
  157.         $this->agent $agent;
  158.         return $this;
  159.     }
  160.     public function setClientId(?int $clientId): self
  161.     {
  162.         $this->clientId $clientId;
  163.         return $this;
  164.     }
  165.     public function getClientId(): ?int
  166.     {
  167.         return $this->clientId;
  168.     }
  169.     public function setClientName(?string $clientName): self
  170.     {
  171.         $this->clientName $clientName;
  172.         return $this;
  173.     }
  174.     public function getClientName(): ?string
  175.     {
  176.         return $this->clientName;
  177.     }
  178.     public function setTitle(?string $title): self
  179.     {
  180.         $this->title $title;
  181.         return $this;
  182.     }
  183.     public function getTitle(): ?string
  184.     {
  185.         return $this->title;
  186.     }
  187.     /**
  188.      * Al establecer el ID de la sala, replicamos el valor en idLoungeDetails
  189.      * para mantener la consistencia de los datos.
  190.      */
  191.     public function setIdLounge(?int $idLounge): self
  192.     {
  193.         $this->idLounge $idLounge;
  194.         $this->idLoungeDetails $idLounge;
  195.         return $this;
  196.     }
  197.     public function getIdLounge(): ?int
  198.     {
  199.         return $this->idLounge;
  200.     }
  201.     public function setDateStart(?\DateTime $dateStart): self
  202.     {
  203.         $this->dateStart $dateStart;
  204.         return $this;
  205.     }
  206.     public function getDateStart(): ?\DateTime
  207.     {
  208.         return $this->dateStart;
  209.     }
  210.     public function setDateEnd(?\DateTime $dateEnd): self
  211.     {
  212.         $this->dateEnd $dateEnd;
  213.         return $this;
  214.     }
  215.     public function getDateEnd(): ?\DateTime
  216.     {
  217.         return $this->dateEnd;
  218.     }
  219.     public function setServicePrice(?int $servicePrice): self
  220.     {
  221.         $this->servicePrice $servicePrice;
  222.         return $this;
  223.     }
  224.     public function getServicePrice(): ?int
  225.     {
  226.         return $this->servicePrice;
  227.     }
  228.     public function setIdReservation(?int $idReservation): self
  229.     {
  230.         $this->idReservation $idReservation;
  231.         return $this;
  232.     }
  233.     public function getIdReservation(): ?int
  234.     {
  235.         return $this->idReservation;
  236.     }
  237.     public function setPax(?int $pax): self
  238.     {
  239.         $this->pax $pax;
  240.         return $this;
  241.     }
  242.     public function getPax(): ?int
  243.     {
  244.         return $this->pax;
  245.     }
  246.     public function setType(?string $type): self
  247.     {
  248.         $this->type $type;
  249.         return $this;
  250.     }
  251.     public function getType(): ?string
  252.     {
  253.         return $this->type;
  254.     }
  255.     public function setHourStart(string $hourStart): self
  256.     {
  257.         $this->hourStart $hourStart;
  258.         return $this;
  259.     }
  260.     public function getHourStart(): ?string
  261.     {
  262.         return $this->hourStart;
  263.     }
  264.     public function setMinStart(string $minStart): self
  265.     {
  266.         $this->minStart $minStart;
  267.         return $this;
  268.     }
  269.     public function getMinStart(): ?string
  270.     {
  271.         return $this->minStart;
  272.     }
  273.     public function setHourEnd(string $hourEnd): self
  274.     {
  275.         $this->hourEnd $hourEnd;
  276.         return $this;
  277.     }
  278.     public function getHourEnd(): ?string
  279.     {
  280.         return $this->hourEnd;
  281.     }
  282.     public function setMinEnd(string $minEnd): self
  283.     {
  284.         $this->minEnd $minEnd;
  285.         return $this;
  286.     }
  287.     public function getMinEnd(): ?string
  288.     {
  289.         return $this->minEnd;
  290.     }
  291.     public function setCreatedAt(\DateTime $createdAt): self
  292.     {
  293.         $this->createdAt $createdAt;
  294.         return $this;
  295.     }
  296.     public function getCreatedAt(): ?\DateTime
  297.     {
  298.         return $this->createdAt;
  299.     }
  300.     public function setCreatedId(int $createdId): self
  301.     {
  302.         $this->createdId $createdId;
  303.         return $this;
  304.     }
  305.     public function getCreatedId(): ?int
  306.     {
  307.         return $this->createdId;
  308.     }
  309.     public function setUpdatedAt(\DateTime $updatedAt): self
  310.     {
  311.         $this->updatedAt $updatedAt;
  312.         return $this;
  313.     }
  314.     public function getUpdatedAt(): ?\DateTime
  315.     {
  316.         return $this->updatedAt;
  317.     }
  318.     public function setUpdatedId(int $updatedId): self
  319.     {
  320.         $this->updatedId $updatedId;
  321.         return $this;
  322.     }
  323.     public function getUpdatedId(): ?int
  324.     {
  325.         return $this->updatedId;
  326.     }
  327.     public function getSpace(): ?Space
  328.     {
  329.         return $this->space;
  330.     }
  331.     public function setSpace(?Space $space): self
  332.     {
  333.         $this->space $space;
  334.         return $this;
  335.     }
  336.     public function setIdLoungeDetails(?int $idLoungeDetails): self
  337.     {
  338.         $this->idLoungeDetails $idLoungeDetails;
  339.         return $this;
  340.     }
  341.     public function getIdLoungeDetails(): ?int
  342.     {
  343.         return $this->idLoungeDetails;
  344.     }
  345. }