src/Entity/Admin/ApiBooking.php line 12
<?php
namespace App\Entity\Admin;
use App\Repository\Admin\ApiBookingRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ApiBookingRepository::class)]
//#[Table(name: 'ApiConnection')]
class ApiBooking
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $agency = null;
#[ORM\Column(length: 255)]
private ?string $product = null;
#[ORM\Column(length: 255)]
private ?string $reference = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $lastName = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $firstName = null;
#[ORM\Column(nullable: true)]
private ?int $duration = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $arrivalDate = null;
#[ORM\Column(type: Types::TIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $arrivalTime = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $departureDate = null;
#[ORM\Column(type: Types::TIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $departureTime = null;
#[ORM\Column(nullable: true)]
private ?int $passengers = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $status = null;
#[ORM\Column]
private ?float $price = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $licensePlate = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $model = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $color = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $phone = null;
#[ORM\Column(type:'text', nullable: true)]
private ?string $notice = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $flightNumberArrival = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $flightNumberDeparture = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $terminalDeparture = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $terminalArrival = null;
#[ORM\Column(length: 255)]
private ?string $paymentStatus = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $createdByApiAt = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $updatedByApiAt = null;
#[ORM\ManyToOne(inversedBy: 'apiBookings')]
private ?ApiConnection $ApiConnection = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $createdAt = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $updatedAt = null;
public function getId(): ?int
{
return $this->id;
}
public function getAgency(): ?string
{
return $this->agency;
}
public function setAgency(string $agency): static
{
$this->agency = $agency;
return $this;
}
public function getProduct(): ?string
{
return $this->product;
}
public function setProduct(string $product): static
{
$this->product = $product;
return $this;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(string $reference): static
{
$this->reference = $reference;
return $this;
}
public function getLastName(): ?string
{
return $this->lastName;
}
public function setLastName(?string $lastName): static
{
$this->lastName = $lastName;
return $this;
}
public function getFirstName(): ?string
{
return $this->firstName;
}
public function setFirstName(?string $firstName): static
{
$this->firstName = $firstName;
return $this;
}
public function getDuration(): ?int
{
return $this->duration;
}
public function setDuration(?int $duration): static
{
$this->duration = $duration;
return $this;
}
public function getArrivalDate(): ?\DateTimeInterface
{
return $this->arrivalDate;
}
public function setArrivalDate(?\DateTimeInterface $arrivalDate): static
{
$this->arrivalDate = $arrivalDate;
return $this;
}
public function getArrivalTime(): ?\DateTimeInterface
{
return $this->arrivalTime;
}
public function setArrivalTime(?\DateTimeInterface $arrivalTime): static
{
$this->arrivalTime = $arrivalTime;
return $this;
}
public function getDepartureDate(): ?\DateTimeInterface
{
return $this->departureDate;
}
public function setDepartureDate(?\DateTimeInterface $departureDate): static
{
$this->departureDate = $departureDate;
return $this;
}
public function getDepartureTime(): ?\DateTimeInterface
{
return $this->departureTime;
}
public function setDepartureTime(?\DateTimeInterface $departureTime): static
{
$this->departureTime = $departureTime;
return $this;
}
public function getPassengers(): ?int
{
return $this->passengers;
}
public function setPassengers(?int $passengers): static
{
$this->passengers = $passengers;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): static
{
$this->status = $status;
return $this;
}
public function getPrice(): ?float
{
return $this->price;
}
public function setPrice(float $price): static
{
$this->price = $price;
return $this;
}
public function getLicensePlate(): ?string
{
return $this->licensePlate;
}
public function setLicensePlate(?string $licensePlate): static
{
$this->licensePlate = $licensePlate;
return $this;
}
public function getModel(): ?string
{
return $this->model;
}
public function setModel(?string $model): static
{
$this->model = $model;
return $this;
}
public function getColor(): ?string
{
return $this->color;
}
public function setColor(?string $color): static
{
$this->color = $color;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): static
{
$this->phone = $phone;
return $this;
}
public function getNotice(): ?string
{
return $this->notice;
}
public function setNotice(?string $notice): static
{
$this->notice = $notice;
return $this;
}
public function getFlightNumberArrival(): ?string
{
return $this->flightNumberArrival;
}
public function setFlightNumberArrival(?string $flightNumberArrival): static
{
$this->flightNumberArrival = $flightNumberArrival;
return $this;
}
public function getFlightNumberDeparture(): ?string
{
return $this->flightNumberDeparture;
}
public function setFlightNumberDeparture(?string $flightNumberDeparture): static
{
$this->flightNumberDeparture = $flightNumberDeparture;
return $this;
}
public function getTerminalDeparture(): ?string
{
return $this->terminalDeparture;
}
public function setTerminalDeparture(?string $terminalDeparture): static
{
$this->terminalDeparture = $terminalDeparture;
return $this;
}
public function getTerminalArrival(): ?string
{
return $this->terminalArrival;
}
public function setTerminalArrival(?string $terminalArrival): static
{
$this->terminalArrival = $terminalArrival;
return $this;
}
public function getPaymentStatus(): ?string
{
return $this->paymentStatus;
}
public function setPaymentStatus(string $paymentStatus): static
{
$this->paymentStatus = $paymentStatus;
return $this;
}
public function getCreatedByApiAt(): ?\DateTimeInterface
{
return $this->createdByApiAt;
}
public function setCreatedByApiAt(\DateTimeInterface $createdByApiAt): static
{
$this->createdByApiAt = $createdByApiAt;
return $this;
}
public function getUpdatedByApiAt(): ?\DateTimeInterface
{
return $this->updatedByApiAt;
}
public function setUpdatedByApiAt(?\DateTimeInterface $updatedByApiAt): static
{
$this->updatedByApiAt = $updatedByApiAt;
return $this;
}
public function getApiConnection(): ?ApiConnection
{
return $this->ApiConnection;
}
public function setApiConnection(?ApiConnection $ApiConnection): static
{
$this->ApiConnection = $ApiConnection;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeInterface $updatedAt): static
{
$this->updatedAt = $updatedAt;
return $this;
}
}