src/Entity/HtVisit.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\MDS\GreenPatioBundle\Entity\ReservationLoungeDetails;
  4. use App\Repository\HtVisitRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=HtVisitRepository::class)
  8.  */
  9. class HtVisit
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=User::class)
  19.      */
  20.     private $agentId;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Client::class)
  23.      */
  24.     private $client;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $clientName;
  29.     /**
  30.      * @ORM\Column(type="string", length=255, nullable=true)
  31.      */
  32.     private $loungeName;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=ReservationLoungeDetails::class)
  35.      */
  36.     private $Lounge;
  37.     /**
  38.      * @ORM\Column(type="datetime", nullable=true)
  39.      */
  40.     private $dateStart;
  41.     /**
  42.      * @ORM\Column(type="datetime", nullable=true)
  43.      */
  44.     private $dateEnd;
  45.     /**
  46.      * @ORM\Column(type="float", nullable=true)
  47.      */
  48.     private $servicePrice;
  49.     /**
  50.      * @ORM\ManyToOne(targetEntity=HtFile::class, inversedBy="htVisits")
  51.      */
  52.     private $reservation;
  53.     /**
  54.      * @ORM\Column(type="integer", nullable=true)
  55.      */
  56.     private $pax;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true)
  59.      */
  60.     private $type;
  61.     /**
  62.      * @ORM\Column(type="time", nullable=true)
  63.      */
  64.     private $hourStart;
  65.     /**
  66.      * @ORM\Column(type="time", nullable=true)
  67.      */
  68.     private $hourEnd;
  69.     /**
  70.      * @ORM\Column(type="datetime_immutable")
  71.      */
  72.     private $createdAt;
  73.     /**
  74.      * @ORM\ManyToOne(targetEntity=User::class)
  75.      */
  76.     private $createdId;
  77.     /**
  78.      * @ORM\Column(type="datetime_immutable")
  79.      */
  80.     private $updatedAt;
  81.     /**
  82.      * @ORM\ManyToOne(targetEntity=User::class)
  83.      */
  84.     private $updatedId;
  85.     /**
  86.      * @ORM\Column(type="string", length=255, nullable=true)
  87.      */
  88.     private $name;
  89.     public function getId(): ?int
  90.     {
  91.         return $this->id;
  92.     }
  93.     public function getAgentId(): ?User
  94.     {
  95.         return $this->agentId;
  96.     }
  97.     public function setAgentId(?User $agentId): self
  98.     {
  99.         $this->agentId $agentId;
  100.         return $this;
  101.     }
  102.     public function getClient(): ?Client
  103.     {
  104.         return $this->client;
  105.     }
  106.     public function setClient(?Client $client): self
  107.     {
  108.         $this->client $client;
  109.         return $this;
  110.     }
  111.     public function getClientName(): ?string
  112.     {
  113.         return $this->clientName;
  114.     }
  115.     public function setClientName(?string $clientName): self
  116.     {
  117.         $this->clientName $clientName;
  118.         return $this;
  119.     }
  120.     public function getLoungeName(): ?string
  121.     {
  122.         return $this->loungeName;
  123.     }
  124.     public function setLoungeName(?string $loungeName): self
  125.     {
  126.         $this->loungeName $loungeName;
  127.         return $this;
  128.     }
  129.     public function getLounge(): ?ReservationLoungeDetails
  130.     {
  131.         return $this->Lounge;
  132.     }
  133.     public function setLounge(?ReservationLoungeDetails $Lounge): self
  134.     {
  135.         $this->Lounge $Lounge;
  136.         return $this;
  137.     }
  138.     public function getDateStart(): ?\DateTimeInterface
  139.     {
  140.         return $this->dateStart;
  141.     }
  142.     public function setDateStart(?\DateTimeInterface $dateStart): self
  143.     {
  144.         $this->dateStart $dateStart;
  145.         return $this;
  146.     }
  147.     public function getDateEnd(): ?\DateTimeInterface
  148.     {
  149.         return $this->dateEnd;
  150.     }
  151.     public function setDateEnd(?\DateTimeInterface $dateEnd): self
  152.     {
  153.         $this->dateEnd $dateEnd;
  154.         return $this;
  155.     }
  156.     public function getServicePrice(): ?float
  157.     {
  158.         return $this->servicePrice;
  159.     }
  160.     public function setServicePrice(?float $servicePrice): self
  161.     {
  162.         $this->servicePrice $servicePrice;
  163.         return $this;
  164.     }
  165.     public function getReservation(): ?HtFile
  166.     {
  167.         return $this->reservation;
  168.     }
  169.     public function setReservation(?HtFile $reservation): self
  170.     {
  171.         $this->reservation $reservation;
  172.         return $this;
  173.     }
  174.     public function getPax(): ?int
  175.     {
  176.         return $this->pax;
  177.     }
  178.     public function setPax(?int $pax): self
  179.     {
  180.         $this->pax $pax;
  181.         return $this;
  182.     }
  183.     public function getType(): ?string
  184.     {
  185.         return $this->type;
  186.     }
  187.     public function setType(?string $type): self
  188.     {
  189.         $this->type $type;
  190.         return $this;
  191.     }
  192.     public function getHourStart(): ?\DateTimeInterface
  193.     {
  194.         return $this->hourStart;
  195.     }
  196.     public function setHourStart(?\DateTimeInterface $hourStart): self
  197.     {
  198.         $this->hourStart $hourStart;
  199.         return $this;
  200.     }
  201.     public function getHourEnd(): ?\DateTimeInterface
  202.     {
  203.         return $this->hourEnd;
  204.     }
  205.     public function setHourEnd(?\DateTimeInterface $hourEnd): self
  206.     {
  207.         $this->hourEnd $hourEnd;
  208.         return $this;
  209.     }
  210.     public function getCreatedAt(): ?\DateTimeImmutable
  211.     {
  212.         return $this->createdAt;
  213.     }
  214.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  215.     {
  216.         $this->createdAt $createdAt;
  217.         return $this;
  218.     }
  219.     public function getCreatedId(): ?User
  220.     {
  221.         return $this->createdId;
  222.     }
  223.     public function setCreatedId(?User $createdId): self
  224.     {
  225.         $this->createdId $createdId;
  226.         return $this;
  227.     }
  228.     public function getUpdatedAt(): ?\DateTimeImmutable
  229.     {
  230.         return $this->updatedAt;
  231.     }
  232.     public function setUpdatedAt(\DateTimeImmutable $updatedAt): self
  233.     {
  234.         $this->updatedAt $updatedAt;
  235.         return $this;
  236.     }
  237.     public function getUpdatedId(): ?User
  238.     {
  239.         return $this->updatedId;
  240.     }
  241.     public function setUpdatedId(?User $updatedId): self
  242.     {
  243.         $this->updatedId $updatedId;
  244.         return $this;
  245.     }
  246.     public function getName(): ?string
  247.     {
  248.         return $this->name;
  249.     }
  250.     public function setName(?string $name): self
  251.     {
  252.         $this->name $name;
  253.         return $this;
  254.     }
  255. }