src/Entity/Main/ApiLocations.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ApiLocations
  6.  *
  7.  * @ORM\Table(name="api_locations", indexes={@ORM\Index(name="name", columns={"name"}), @ORM\Index(name="api_locations_Provinces_FK", columns={"province"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\Main\ApiLocationsRepository")
  9.  */
  10. class ApiLocations
  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="province", type="integer", nullable=true, options={"default"="NULL"})
  24.      */
  25.     private $province NULL;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="name", type="string", length=150, nullable=true, options={"default"="NULL"})
  30.      */
  31.     private $name 'NULL';
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="friendly", type="string", length=255, nullable=false)
  36.      */
  37.     private $friendly;
  38.     /**
  39.      * @var int
  40.      *
  41.      * @ORM\Column(name="num_immobles_cerca_rapida", type="integer", nullable=false)
  42.      */
  43.     private $numImmoblesCercaRapida '0';
  44.     /**
  45.      * @var int
  46.      *
  47.      * @ORM\Column(name="orden", type="integer", nullable=false)
  48.      */
  49.     private $orden '0';
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="seo_home", type="string", length=1, nullable=false, options={"default"="'0'","comment"="1 - Si se activa la localidad para el SEO Home"})
  54.      */
  55.     private $seoHome '\'0\'';
  56.     /**
  57.      * @var int
  58.      *
  59.      * @ORM\Column(name="zoom", type="integer", nullable=false)
  60.      */
  61.     private $zoom '0';
  62.     public function getId(): ?int
  63.     {
  64.         return $this->id;
  65.     }
  66.     public function getProvince(): ?int
  67.     {
  68.         return $this->province;
  69.     }
  70.     public function setProvince(?int $province): self
  71.     {
  72.         $this->province $province;
  73.         return $this;
  74.     }
  75.     public function getName(): ?string
  76.     {
  77.         return $this->name;
  78.     }
  79.     public function setName(?string $name): self
  80.     {
  81.         $this->name $name;
  82.         return $this;
  83.     }
  84.     public function getFriendly(): ?string
  85.     {
  86.         return $this->friendly;
  87.     }
  88.     public function setFriendly(string $friendly): self
  89.     {
  90.         $this->friendly $friendly;
  91.         return $this;
  92.     }
  93.     public function getNumImmoblesCercaRapida(): ?int
  94.     {
  95.         return $this->numImmoblesCercaRapida;
  96.     }
  97.     public function setNumImmoblesCercaRapida(int $numImmoblesCercaRapida): self
  98.     {
  99.         $this->numImmoblesCercaRapida $numImmoblesCercaRapida;
  100.         return $this;
  101.     }
  102.     public function getOrden(): ?int
  103.     {
  104.         return $this->orden;
  105.     }
  106.     public function setOrden(int $orden): self
  107.     {
  108.         $this->orden $orden;
  109.         return $this;
  110.     }
  111.     public function getSeoHome(): ?string
  112.     {
  113.         return $this->seoHome;
  114.     }
  115.     public function setSeoHome(string $seoHome): self
  116.     {
  117.         $this->seoHome $seoHome;
  118.         return $this;
  119.     }
  120.     public function getZoom(): ?int
  121.     {
  122.         return $this->zoom;
  123.     }
  124.     public function setZoom(int $zoom): self
  125.     {
  126.         $this->zoom $zoom;
  127.         return $this;
  128.     }
  129. }