src/Entity/Admin/ApiBooking.php line 12

  1. <?php
  2. namespace App\Entity\Admin;
  3. use App\Repository\Admin\ApiBookingRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassApiBookingRepository::class)]
  8. //#[Table(name: 'ApiConnection')]
  9. class ApiBooking
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $agency null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $product null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $reference null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $lastName null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $firstName null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?int $duration null;
  27.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  28.     private ?\DateTimeInterface $arrivalDate null;
  29.     #[ORM\Column(typeTypes::TIME_MUTABLEnullabletrue)]
  30.     private ?\DateTimeInterface $arrivalTime null;
  31.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  32.     private ?\DateTimeInterface $departureDate null;
  33.     #[ORM\Column(typeTypes::TIME_MUTABLEnullabletrue)]
  34.     private ?\DateTimeInterface $departureTime null;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?int $passengers null;
  37.     #[ORM\Column(length255nullabletrue)]
  38.     private ?string $status null;
  39.     #[ORM\Column]
  40.     private ?float $price null;
  41.     #[ORM\Column(length255nullabletrue)]
  42.     private ?string $licensePlate null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $model null;
  45.     #[ORM\Column(length255nullabletrue)]
  46.     private ?string $color null;
  47.     #[ORM\Column(length255nullabletrue)]
  48.     private ?string $phone null;
  49.     #[ORM\Column(type:'text'nullabletrue)]
  50.     private ?string $notice null;
  51.     #[ORM\Column(length255nullabletrue)]
  52.     private ?string $flightNumberArrival null;
  53.     #[ORM\Column(length255nullabletrue)]
  54.     private ?string $flightNumberDeparture null;
  55.     #[ORM\Column(length255nullabletrue)]
  56.     private ?string $terminalDeparture null;
  57.     #[ORM\Column(length255nullabletrue)]
  58.     private ?string $terminalArrival null;
  59.     #[ORM\Column(length255)]
  60.     private ?string $paymentStatus null;
  61.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  62.     private ?\DateTimeInterface $createdByApiAt null;
  63.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  64.     private ?\DateTimeInterface $updatedByApiAt null;
  65.     #[ORM\ManyToOne(inversedBy'apiBookings')]
  66.     private ?ApiConnection $ApiConnection null;
  67.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  68.     private ?\DateTimeInterface $createdAt null;
  69.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  70.     private ?\DateTimeInterface $updatedAt null;
  71.     public function getId(): ?int
  72.     {
  73.         return $this->id;
  74.     }
  75.     public function getAgency(): ?string
  76.     {
  77.         return $this->agency;
  78.     }
  79.     public function setAgency(string $agency): static
  80.     {
  81.         $this->agency $agency;
  82.         return $this;
  83.     }
  84.     public function getProduct(): ?string
  85.     {
  86.         return $this->product;
  87.     }
  88.     public function setProduct(string $product): static
  89.     {
  90.         $this->product $product;
  91.         return $this;
  92.     }
  93.     public function getReference(): ?string
  94.     {
  95.         return $this->reference;
  96.     }
  97.     public function setReference(string $reference): static
  98.     {
  99.         $this->reference $reference;
  100.         return $this;
  101.     }
  102.     public function getLastName(): ?string
  103.     {
  104.         return $this->lastName;
  105.     }
  106.     public function setLastName(?string $lastName): static
  107.     {
  108.         $this->lastName $lastName;
  109.         return $this;
  110.     }
  111.     public function getFirstName(): ?string
  112.     {
  113.         return $this->firstName;
  114.     }
  115.     public function setFirstName(?string $firstName): static
  116.     {
  117.         $this->firstName $firstName;
  118.         return $this;
  119.     }
  120.     public function getDuration(): ?int
  121.     {
  122.         return $this->duration;
  123.     }
  124.     public function setDuration(?int $duration): static
  125.     {
  126.         $this->duration $duration;
  127.         return $this;
  128.     }
  129.     public function getArrivalDate(): ?\DateTimeInterface
  130.     {
  131.         return $this->arrivalDate;
  132.     }
  133.     public function setArrivalDate(?\DateTimeInterface $arrivalDate): static
  134.     {
  135.         $this->arrivalDate $arrivalDate;
  136.         return $this;
  137.     }
  138.     public function getArrivalTime(): ?\DateTimeInterface
  139.     {
  140.         return $this->arrivalTime;
  141.     }
  142.     public function setArrivalTime(?\DateTimeInterface $arrivalTime): static
  143.     {
  144.         $this->arrivalTime $arrivalTime;
  145.         return $this;
  146.     }
  147.     public function getDepartureDate(): ?\DateTimeInterface
  148.     {
  149.         return $this->departureDate;
  150.     }
  151.     public function setDepartureDate(?\DateTimeInterface $departureDate): static
  152.     {
  153.         $this->departureDate $departureDate;
  154.         return $this;
  155.     }
  156.     public function getDepartureTime(): ?\DateTimeInterface
  157.     {
  158.         return $this->departureTime;
  159.     }
  160.     public function setDepartureTime(?\DateTimeInterface $departureTime): static
  161.     {
  162.         $this->departureTime $departureTime;
  163.         return $this;
  164.     }
  165.     public function getPassengers(): ?int
  166.     {
  167.         return $this->passengers;
  168.     }
  169.     public function setPassengers(?int $passengers): static
  170.     {
  171.         $this->passengers $passengers;
  172.         return $this;
  173.     }
  174.     public function getStatus(): ?string
  175.     {
  176.         return $this->status;
  177.     }
  178.     public function setStatus(?string $status): static
  179.     {
  180.         $this->status $status;
  181.         return $this;
  182.     }
  183.     public function getPrice(): ?float
  184.     {
  185.         return $this->price;
  186.     }
  187.     public function setPrice(float $price): static
  188.     {
  189.         $this->price $price;
  190.         return $this;
  191.     }
  192.     public function getLicensePlate(): ?string
  193.     {
  194.         return $this->licensePlate;
  195.     }
  196.     public function setLicensePlate(?string $licensePlate): static
  197.     {
  198.         $this->licensePlate $licensePlate;
  199.         return $this;
  200.     }
  201.     public function getModel(): ?string
  202.     {
  203.         return $this->model;
  204.     }
  205.     public function setModel(?string $model): static
  206.     {
  207.         $this->model $model;
  208.         return $this;
  209.     }
  210.     public function getColor(): ?string
  211.     {
  212.         return $this->color;
  213.     }
  214.     public function setColor(?string $color): static
  215.     {
  216.         $this->color $color;
  217.         return $this;
  218.     }
  219.     public function getPhone(): ?string
  220.     {
  221.         return $this->phone;
  222.     }
  223.     public function setPhone(?string $phone): static
  224.     {
  225.         $this->phone $phone;
  226.         return $this;
  227.     }
  228.     public function getNotice(): ?string
  229.     {
  230.         return $this->notice;
  231.     }
  232.     public function setNotice(?string $notice): static
  233.     {
  234.         $this->notice $notice;
  235.         return $this;
  236.     }
  237.     public function getFlightNumberArrival(): ?string
  238.     {
  239.         return $this->flightNumberArrival;
  240.     }
  241.     public function setFlightNumberArrival(?string $flightNumberArrival): static
  242.     {
  243.         $this->flightNumberArrival $flightNumberArrival;
  244.         return $this;
  245.     }
  246.     public function getFlightNumberDeparture(): ?string
  247.     {
  248.         return $this->flightNumberDeparture;
  249.     }
  250.     public function setFlightNumberDeparture(?string $flightNumberDeparture): static
  251.     {
  252.         $this->flightNumberDeparture $flightNumberDeparture;
  253.         return $this;
  254.     }
  255.     public function getTerminalDeparture(): ?string
  256.     {
  257.         return $this->terminalDeparture;
  258.     }
  259.     public function setTerminalDeparture(?string $terminalDeparture): static
  260.     {
  261.         $this->terminalDeparture $terminalDeparture;
  262.         return $this;
  263.     }
  264.     public function getTerminalArrival(): ?string
  265.     {
  266.         return $this->terminalArrival;
  267.     }
  268.     public function setTerminalArrival(?string $terminalArrival): static
  269.     {
  270.         $this->terminalArrival $terminalArrival;
  271.         return $this;
  272.     }
  273.     public function getPaymentStatus(): ?string
  274.     {
  275.         return $this->paymentStatus;
  276.     }
  277.     public function setPaymentStatus(string $paymentStatus): static
  278.     {
  279.         $this->paymentStatus $paymentStatus;
  280.         return $this;
  281.     }
  282.     public function getCreatedByApiAt(): ?\DateTimeInterface
  283.     {
  284.         return $this->createdByApiAt;
  285.     }
  286.     public function setCreatedByApiAt(\DateTimeInterface $createdByApiAt): static
  287.     {
  288.         $this->createdByApiAt $createdByApiAt;
  289.         return $this;
  290.     }
  291.     public function getUpdatedByApiAt(): ?\DateTimeInterface
  292.     {
  293.         return $this->updatedByApiAt;
  294.     }
  295.     public function setUpdatedByApiAt(?\DateTimeInterface $updatedByApiAt): static
  296.     {
  297.         $this->updatedByApiAt $updatedByApiAt;
  298.         return $this;
  299.     }
  300.     public function getApiConnection(): ?ApiConnection
  301.     {
  302.         return $this->ApiConnection;
  303.     }
  304.     public function setApiConnection(?ApiConnection $ApiConnection): static
  305.     {
  306.         $this->ApiConnection $ApiConnection;
  307.         return $this;
  308.     }
  309.     public function getCreatedAt(): ?\DateTimeInterface
  310.     {
  311.         return $this->createdAt;
  312.     }
  313.     public function setCreatedAt(\DateTimeInterface $createdAt): static
  314.     {
  315.         $this->createdAt $createdAt;
  316.         return $this;
  317.     }
  318.     public function getUpdatedAt(): ?\DateTimeInterface
  319.     {
  320.         return $this->updatedAt;
  321.     }
  322.     public function setUpdatedAt(\DateTimeInterface $updatedAt): static
  323.     {
  324.         $this->updatedAt $updatedAt;
  325.         return $this;
  326.     }
  327. }