src/Entity/Flight.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FlightRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=FlightRepository::class)
  7.  */
  8. class Flight
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Offer::class, inversedBy="flights")
  18.      */
  19.     private $offer;
  20.     /**
  21.      * @ORM\Column(type="integer", nullable=true)
  22.      */
  23.     private $type;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $departureCity;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private $arrivalCity;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $airline;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $flightNumber;
  40.     /**
  41.      * @ORM\Column(type="string", nullable=true)
  42.      */
  43.     private $departureTime;
  44.     /**
  45.      * @ORM\Column(type="string", nullable=true)
  46.      */
  47.     private $arrivalTime;
  48.     /**
  49.      * @ORM\Column(type="string", length=255, nullable=true)
  50.      */
  51.     private $notes;
  52.     /**
  53.      * @ORM\Column(type="integer", nullable=true)
  54.      */
  55.     private $position;
  56.     public function getId(): ?int
  57.     {
  58.         return $this->id;
  59.     }
  60.     public function getOffer(): ?Offer
  61.     {
  62.         return $this->offer;
  63.     }
  64.     public function setOffer(?Offer $offer): self
  65.     {
  66.         $this->offer $offer;
  67.         return $this;
  68.     }
  69.     public function getType(): ?int
  70.     {
  71.         return $this->type;
  72.     }
  73.     public function setType(?int $type): self
  74.     {
  75.         $this->type $type;
  76.         return $this;
  77.     }
  78.     public function getDepartureCity(): ?string
  79.     {
  80.         return $this->departureCity;
  81.     }
  82.     public function setDepartureCity(?string $departureCity): self
  83.     {
  84.         $this->departureCity $departureCity;
  85.         return $this;
  86.     }
  87.     public function getArrivalCity(): ?string
  88.     {
  89.         return $this->arrivalCity;
  90.     }
  91.     public function setArrivalCity(?string $arrivalCity): self
  92.     {
  93.         $this->arrivalCity $arrivalCity;
  94.         return $this;
  95.     }
  96.     public function getAirline(): ?string
  97.     {
  98.         return $this->airline;
  99.     }
  100.     public function setAirline(?string $airline): self
  101.     {
  102.         $this->airline $airline;
  103.         return $this;
  104.     }
  105.     public function getFlightNumber(): ?string
  106.     {
  107.         return $this->flightNumber;
  108.     }
  109.     public function setFlightNumber(?string $flightNumber): self
  110.     {
  111.         $this->flightNumber $flightNumber;
  112.         return $this;
  113.     }
  114.     public function getNotes(): ?string
  115.     {
  116.         return $this->notes;
  117.     }
  118.     public function setNotes(?string $notes): self
  119.     {
  120.         $this->notes $notes;
  121.         return $this;
  122.     }
  123.     public function getPosition(): ?int
  124.     {
  125.         return $this->position;
  126.     }
  127.     public function setPosition(?int $position): self
  128.     {
  129.         $this->position $position;
  130.         return $this;
  131.     }
  132.     /**
  133.      * Get the value of departureTime
  134.      */ 
  135.     public function getDepartureTime()
  136.     {
  137.         return $this->departureTime;
  138.     }
  139.     /**
  140.      * Set the value of departureTime
  141.      *
  142.      * @return  self
  143.      */ 
  144.     public function setDepartureTime($departureTime)
  145.     {
  146.         $this->departureTime $departureTime;
  147.         return $this;
  148.     }
  149.     /**
  150.      * Get the value of arrivalTime
  151.      */ 
  152.     public function getArrivalTime()
  153.     {
  154.         return $this->arrivalTime;
  155.     }
  156.     /**
  157.      * Set the value of arrivalTime
  158.      *
  159.      * @return  self
  160.      */ 
  161.     public function setArrivalTime($arrivalTime)
  162.     {
  163.         $this->arrivalTime $arrivalTime;
  164.         return $this;
  165.     }
  166. }