src/Entity/Main/ApiProvinces.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ApiProvinces
  6.  *
  7.  * @ORM\Table(name="api_provinces", indexes={@ORM\Index(name="Provinces_AutonomousCommunities_FK", columns={"autonomousCommunity"}), @ORM\Index(name="Provinces_Countries_FK", columns={"country"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\Main\ApiProvincesRepository")
  9.  */
  10. class ApiProvinces
  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 int|null
  22.      *
  23.      * @ORM\Column(name="country", type="integer", nullable=true, options={"default"="NULL"})
  24.      */
  25.     private $country NULL;
  26.     /**
  27.      * @var int|null
  28.      *
  29.      * @ORM\Column(name="autonomousCommunity", type="integer", nullable=true, options={"default"="NULL"})
  30.      */
  31.     private $autonomouscommunity NULL;
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="name", type="string", length=150, nullable=true, options={"default"="NULL"})
  36.      */
  37.     private $name 'NULL';
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="friendly", type="string", length=255, nullable=false)
  42.      */
  43.     private $friendly;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getCountry(): ?int
  49.     {
  50.         return $this->country;
  51.     }
  52.     public function setCountry(?int $country): self
  53.     {
  54.         $this->country $country;
  55.         return $this;
  56.     }
  57.     public function getAutonomouscommunity(): ?int
  58.     {
  59.         return $this->autonomouscommunity;
  60.     }
  61.     public function setAutonomouscommunity(?int $autonomouscommunity): self
  62.     {
  63.         $this->autonomouscommunity $autonomouscommunity;
  64.         return $this;
  65.     }
  66.     public function getName(): ?string
  67.     {
  68.         return $this->name;
  69.     }
  70.     public function setName(?string $name): self
  71.     {
  72.         $this->name $name;
  73.         return $this;
  74.     }
  75.     public function getFriendly(): ?string
  76.     {
  77.         return $this->friendly;
  78.     }
  79.     public function setFriendly(string $friendly): self
  80.     {
  81.         $this->friendly $friendly;
  82.         return $this;
  83.     }
  84. }