<?php
namespace App\Entity;
use App\Repository\FlightRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FlightRepository::class)
*/
class Flight
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Offer::class, inversedBy="flights")
*/
private $offer;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $type;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $departureCity;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $arrivalCity;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $airline;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $flightNumber;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $departureTime;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $arrivalTime;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $notes;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $position;
public function getId(): ?int
{
return $this->id;
}
public function getOffer(): ?Offer
{
return $this->offer;
}
public function setOffer(?Offer $offer): self
{
$this->offer = $offer;
return $this;
}
public function getType(): ?int
{
return $this->type;
}
public function setType(?int $type): self
{
$this->type = $type;
return $this;
}
public function getDepartureCity(): ?string
{
return $this->departureCity;
}
public function setDepartureCity(?string $departureCity): self
{
$this->departureCity = $departureCity;
return $this;
}
public function getArrivalCity(): ?string
{
return $this->arrivalCity;
}
public function setArrivalCity(?string $arrivalCity): self
{
$this->arrivalCity = $arrivalCity;
return $this;
}
public function getAirline(): ?string
{
return $this->airline;
}
public function setAirline(?string $airline): self
{
$this->airline = $airline;
return $this;
}
public function getFlightNumber(): ?string
{
return $this->flightNumber;
}
public function setFlightNumber(?string $flightNumber): self
{
$this->flightNumber = $flightNumber;
return $this;
}
public function getNotes(): ?string
{
return $this->notes;
}
public function setNotes(?string $notes): self
{
$this->notes = $notes;
return $this;
}
public function getPosition(): ?int
{
return $this->position;
}
public function setPosition(?int $position): self
{
$this->position = $position;
return $this;
}
/**
* Get the value of departureTime
*/
public function getDepartureTime()
{
return $this->departureTime;
}
/**
* Set the value of departureTime
*
* @return self
*/
public function setDepartureTime($departureTime)
{
$this->departureTime = $departureTime;
return $this;
}
/**
* Get the value of arrivalTime
*/
public function getArrivalTime()
{
return $this->arrivalTime;
}
/**
* Set the value of arrivalTime
*
* @return self
*/
public function setArrivalTime($arrivalTime)
{
$this->arrivalTime = $arrivalTime;
return $this;
}
}