src/Aviatur/FlightBundle/Entity/AirlineValidation.php line 14

Open in your IDE?
  1. <?php
  2. namespace Aviatur\FlightBundle\Entity;
  3. use Aviatur\AgencyBundle\Entity\Agency;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * AirlineValidation.
  7.  *
  8.  * @ORM\Table(name="airline_validation")
  9.  * @ORM\Entity(repositoryClass="Aviatur\FlightBundle\Entity\AirlineValidationRepository")
  10.  */
  11. class AirlineValidation
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false)
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="flightType", type="string", length=10, nullable=false)
  25.      */
  26.     private $flighttype;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="paymentType", type="string", length=10, nullable=false)
  31.      */
  32.     private $paymenttype;
  33.     /**
  34.      * @var int
  35.      *
  36.      * @ORM\Column(name="paymentCode", type="integer", length=10, nullable=false)
  37.      */
  38.     private $paymentcode;
  39.     /**
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="Airline", inversedBy="airlineValidation")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="airline_id", referencedColumnName="id")
  44.      * })
  45.      */
  46.     private ?\Aviatur\FlightBundle\Entity\Airline $airline null;
  47.     /**
  48.      *
  49.      * @ORM\ManyToOne(targetEntity="Aviatur\GeneralBundle\Entity\Card", inversedBy="airlineValidation")
  50.      * @ORM\JoinColumns({
  51.      *   @ORM\JoinColumn(name="card_id", referencedColumnName="id")
  52.      * })
  53.      */
  54.     private ?\Aviatur\GeneralBundle\Entity\Card $card null;
  55.     /**
  56.      * @ORM\Column(name="runway", type="string", length=11, nullable=true)
  57.      */
  58.     private ?string $runway null;
  59.     /**
  60.      * @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="airlineValidation")
  61.      * @ORM\JoinColumns({
  62.      *     @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  63.      * })
  64.      */
  65.     private ?Agency $agency null;
  66.     /**
  67.      * Get id.
  68.      *
  69.      * @return int
  70.      */
  71.     public function getId()
  72.     {
  73.         return $this->id;
  74.     }
  75.     /**
  76.      * Set flighttype.
  77.      *
  78.      * @param string $flighttype
  79.      *
  80.      * @return AirlineValidation
  81.      */
  82.     public function setFlighttype($flighttype)
  83.     {
  84.         $this->flighttype $flighttype;
  85.         return $this;
  86.     }
  87.     /**
  88.      * Get flighttype.
  89.      *
  90.      * @return string
  91.      */
  92.     public function getFlighttype()
  93.     {
  94.         return $this->flighttype;
  95.     }
  96.     /**
  97.      * Set paymenttype.
  98.      *
  99.      * @param string $paymenttype
  100.      *
  101.      * @return AirlineValidation
  102.      */
  103.     public function setPaymenttype($paymenttype)
  104.     {
  105.         $this->paymenttype $paymenttype;
  106.         return $this;
  107.     }
  108.     /**
  109.      * Get paymenttype.
  110.      *
  111.      * @return string
  112.      */
  113.     public function getPaymenttype()
  114.     {
  115.         return $this->paymenttype;
  116.     }
  117.     /**
  118.      * Set paymentcode.
  119.      *
  120.      * @param int $paymentcode
  121.      *
  122.      * @return AirlineValidation
  123.      */
  124.     public function setPaymentcode($paymentcode)
  125.     {
  126.         $this->paymentcode $paymentcode;
  127.         return $this;
  128.     }
  129.     /**
  130.      * Get paymentcode.
  131.      *
  132.      * @return int
  133.      */
  134.     public function getPaymentcode()
  135.     {
  136.         return $this->paymentcode;
  137.     }
  138.     /**
  139.      * Set airline.
  140.      *
  141.      * @param \Aviatur\FlightBundle\Entity\Airline $airline
  142.      *
  143.      * @return AirlineValidation
  144.      */
  145.     public function setAirline(\Aviatur\FlightBundle\Entity\Airline $airline null)
  146.     {
  147.         $this->airline $airline;
  148.         return $this;
  149.     }
  150.     /**
  151.      * Get airline.
  152.      *
  153.      * @return \Aviatur\FlightBundle\Entity\Airline
  154.      */
  155.     public function getAirline()
  156.     {
  157.         return $this->airline;
  158.     }
  159.     /**
  160.      * Set card.
  161.      *
  162.      * @param \Aviatur\GeneralBundle\Entity\Card $card
  163.      *
  164.      * @return AirlineValidation
  165.      */
  166.     public function setCard(\Aviatur\GeneralBundle\Entity\Card $card null)
  167.     {
  168.         $this->card $card;
  169.         return $this;
  170.     }
  171.     /**
  172.      * Get card.
  173.      *
  174.      * @return \Aviatur\GeneralBundle\Entity\Card
  175.      */
  176.     public function getCard()
  177.     {
  178.         return $this->card;
  179.     }
  180.     /**
  181.      * Set airline.
  182.      *
  183.      * @param \Aviatur\FlightBundle\Entity\Runway $runway
  184.      *
  185.      * @return AirlineValidation
  186.      */
  187.     public function setRunway(\Aviatur\FlightBundle\Entity\Airline $runway null)
  188.     {
  189.         $this->runway $runway;
  190.         return $this;
  191.     }
  192.     /**
  193.      * Get airline.
  194.      *
  195.      * @return \Aviatur\FlightBundle\Entity\Runway
  196.      */
  197.     public function getRunway()
  198.     {
  199.         return $this->runway;
  200.     }
  201.     /**
  202.      * Get agency
  203.      *
  204.      * @return Agency|null
  205.      */
  206.     public function getAgency(): ?Agency
  207.     {
  208.         return $this->agency;
  209.     }
  210.     /**
  211.      * Set agency
  212.      *
  213.      * @param Agency|null $agency
  214.      * @return $this
  215.      */
  216.     public function setAgency(?Agency $agency null): AirlineValidation
  217.     {
  218.         $this->agency $agency;
  219.         return $this;
  220.     }
  221. }