src/Entity/Otpusk/Airport.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Otpusk;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Tairports
  7.  *
  8.  * @ORM\Table(name="tAirports", indexes={@ORM\Index(name="fICAO", columns={"fICAO"}), @ORM\Index(name="fName", columns={"fNameRus", "fCityRus", "fNameEng", "fCityEng"}), @ORM\Index(name="fCountryISO", columns={"fCountryISO"})})
  9.  * @ORM\Entity
  10.  */
  11. class Airport
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="rec_id", type="integer", nullable=false, options={"unsigned"=true})
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var int
  23.      *
  24.      * @ORM\Column(name="fCityID", type="integer", nullable=true)
  25.      */
  26.     private $cityId;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="fIATA", type="string", length=3, nullable=false, options={"fixed"=true, "default":""})
  31.      */
  32.     private $iata '';
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="fICAO", type="string", length=4, nullable=false, options={"fixed"=true, "default":""})
  37.      */
  38.     private $icao '';
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="fNameRus", type="string", length=64, nullable=false, options={"default":""})
  43.      */
  44.     private $name '';
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="fNameEng", type="string", length=64, nullable=false, options={"default":""})
  49.      */
  50.     private $nameEng '';
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(name="fNameAlt", type="text", length=65535, nullable=false, options={"comment"="Альтернативное название"})
  55.      */
  56.     private $nameAlt '';
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="fCityRus", type="string", length=32, nullable=false, options={"default":""})
  61.      */
  62.     private $cityRus '';
  63.     /**
  64.      * @var string
  65.      *
  66.      * @ORM\Column(name="fCityEng", type="string", length=32, nullable=false, options={"default":""})
  67.      */
  68.     private $cityEng '';
  69.     /**
  70.      * @var string
  71.      *
  72.      * @ORM\Column(name="fCountryISO", type="string", length=2, nullable=false, options={"fixed"=true, "default":""})
  73.      */
  74.     private $countryIso '';
  75.     /**
  76.      * @var string|null
  77.      *
  78.      * @ORM\Column(name="fGmtOffset", type="decimal", precision=3, scale=1, nullable=true)
  79.      */
  80.     private $gmtOffset;
  81.     /**
  82.      * @var string|null
  83.      *
  84.      * @ORM\Column(name="fTimeZone", type="string", length=222, nullable=true)
  85.      */
  86.     private $timeZone;
  87.     /**
  88.      * @var string|null
  89.      *
  90.      * @ORM\Column(name="fLatitude", type="decimal", precision=9, scale=6, nullable=true)
  91.      */
  92.     private $latitude;
  93.     /**
  94.      * @var string|null
  95.      *
  96.      * @ORM\Column(name="fLongitude", type="decimal", precision=9, scale=6, nullable=true)
  97.      */
  98.     private $longitude;
  99.     /**
  100.      * @var string
  101.      *
  102.      * @ORM\Column(name="fWebsite", type="string", length=255, nullable=false, options={"default":""})
  103.      */
  104.     private $webSite '';
  105.     public function __toString()
  106.     {
  107.         return $this->getName();
  108.     }
  109.     public function getId(): ?int
  110.     {
  111.         return $this->id;
  112.     }
  113.     public function getCityId(): ?int
  114.     {
  115.         return $this->cityId;
  116.     }
  117.     public function setCityId(int $cityId): static
  118.     {
  119.         $this->cityId $cityId;
  120.         return $this;
  121.     }
  122.     public function getIata(): ?string
  123.     {
  124.         return $this->iata;
  125.     }
  126.     public function setIata(string $iata): static
  127.     {
  128.         $this->iata $iata;
  129.         return $this;
  130.     }
  131.     public function getIcao(): ?string
  132.     {
  133.         return $this->icao;
  134.     }
  135.     public function setIcao(string $icao): static
  136.     {
  137.         $this->icao $icao;
  138.         return $this;
  139.     }
  140.     public function getName(): ?string
  141.     {
  142.         return $this->name;
  143.     }
  144.     public function setName(string $name): static
  145.     {
  146.         $this->name $name;
  147.         return $this;
  148.     }
  149.     public function getNameEng(): ?string
  150.     {
  151.         return $this->nameEng;
  152.     }
  153.     public function setNameEng(string $nameEng): static
  154.     {
  155.         $this->nameEng $nameEng;
  156.         return $this;
  157.     }
  158.     public function getNameAlt(): ?string
  159.     {
  160.         return $this->nameAlt;
  161.     }
  162.     public function setNameAlt(string $nameAlt): static
  163.     {
  164.         $this->nameAlt $nameAlt;
  165.         return $this;
  166.     }
  167.     public function getCityRus(): ?string
  168.     {
  169.         return $this->cityRus;
  170.     }
  171.     public function setCityRus(string $cityRus): static
  172.     {
  173.         $this->cityRus $cityRus;
  174.         return $this;
  175.     }
  176.     public function getCityEng(): ?string
  177.     {
  178.         return $this->cityEng;
  179.     }
  180.     public function setCityEng(string $cityEng): static
  181.     {
  182.         $this->cityEng $cityEng;
  183.         return $this;
  184.     }
  185.     public function getCountryIso(): ?string
  186.     {
  187.         return $this->countryIso;
  188.     }
  189.     public function setCountryIso(string $countryIso): static
  190.     {
  191.         $this->countryIso $countryIso;
  192.         return $this;
  193.     }
  194.     public function getGmtOffset(): ?string
  195.     {
  196.         return $this->gmtOffset;
  197.     }
  198.     public function setGmtOffset(?string $gmtOffset): static
  199.     {
  200.         $this->gmtOffset $gmtOffset;
  201.         return $this;
  202.     }
  203.     public function getTimeZone(): ?string
  204.     {
  205.         return $this->timeZone;
  206.     }
  207.     public function setTimeZone(?string $timeZone): static
  208.     {
  209.         $this->timeZone $timeZone;
  210.         return $this;
  211.     }
  212.     public function getLatitude(): ?string
  213.     {
  214.         return $this->latitude;
  215.     }
  216.     public function setLatitude(?string $latitude): static
  217.     {
  218.         $this->latitude $latitude;
  219.         return $this;
  220.     }
  221.     public function getLongitude(): ?string
  222.     {
  223.         return $this->longitude;
  224.     }
  225.     public function setLongitude(?string $longitude): static
  226.     {
  227.         $this->longitude $longitude;
  228.         return $this;
  229.     }
  230.     public function getWebSite(): ?string
  231.     {
  232.         return $this->webSite;
  233.     }
  234.     public function setWebSite(string $webSite): static
  235.     {
  236.         $this->webSite $webSite;
  237.         return $this;
  238.     }
  239. }