src/Entity/Otpusk/Airline.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Otpusk;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Tairlines
  6.  *
  7.  * @ORM\Table(name="tAirlines", uniqueConstraints={@ORM\UniqueConstraint(name="iic", columns={"fIATA", "fICAO", "fCountryISO"})}, indexes={@ORM\Index(name="fICAO", columns={"fICAO"}), @ORM\Index(name="fCountryISO", columns={"fCountryISO"})})
  8.  * @ORM\Entity
  9.  */
  10. class Airline
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="rec_id", type="integer", nullable=false, options={"unsigned"=true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="fIATA", type="string", length=2, nullable=false, options={"fixed"=true, "default":""})
  24.      */
  25.     private $iata '';
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="fICAO", type="string", length=3, nullable=false, options={"fixed"=true, "default":""})
  30.      */
  31.     private $icao '';
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="fName", type="string", length=255, nullable=false)
  36.      */
  37.     private $name;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="fCountryISO", type="string", length=2, nullable=false, options={"fixed"=true, "default":""})
  42.      */
  43.     private $countryIso '';
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="fCallsign", type="string", length=128, nullable=false)
  48.      */
  49.     private $callsign;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="fWebsite", type="string", length=255, nullable=false)
  54.      */
  55.     private $webSite;
  56.     public function __toString()
  57.     {
  58.         return $this->getName();
  59.     }
  60.     public function getId(): ?int
  61.     {
  62.         return $this->id;
  63.     }
  64.     public function getIata(): ?string
  65.     {
  66.         return $this->iata;
  67.     }
  68.     public function setIata(string $iata): static
  69.     {
  70.         $this->iata $iata;
  71.         return $this;
  72.     }
  73.     public function getIcao(): ?string
  74.     {
  75.         return $this->icao;
  76.     }
  77.     public function setIcao(string $icao): static
  78.     {
  79.         $this->icao $icao;
  80.         return $this;
  81.     }
  82.     public function getName(): ?string
  83.     {
  84.         return $this->name;
  85.     }
  86.     public function setName(string $name): static
  87.     {
  88.         $this->name $name;
  89.         return $this;
  90.     }
  91.     public function getCountryIso(): ?string
  92.     {
  93.         return $this->countryIso;
  94.     }
  95.     public function setCountryIso(string $countryIso): static
  96.     {
  97.         $this->countryIso $countryIso;
  98.         return $this;
  99.     }
  100.     public function getCallsign(): ?string
  101.     {
  102.         return $this->callsign;
  103.     }
  104.     public function setCallsign(string $callsign): static
  105.     {
  106.         $this->callsign $callsign;
  107.         return $this;
  108.     }
  109.     public function getWebSite(): ?string
  110.     {
  111.         return $this->webSite;
  112.     }
  113.     public function setWebSite(string $webSite): static
  114.     {
  115.         $this->webSite $webSite;
  116.         return $this;
  117.     }
  118. }