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

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