<?php
namespace App\Entity\Main;
use Doctrine\ORM\Mapping as ORM;
/**
* ApiProperties
*
* @ORM\Table(name="api_properties", indexes={@ORM\Index(name="id_colegiado", columns={"id_colegiado"}), @ORM\Index(name="fecha_creacion", columns={"fecha_creacion"}), @ORM\Index(name="num_fotos", columns={"num_fotos"}), @ORM\Index(name="obra_nueva", columns={"obra_nueva"}), @ORM\Index(name="precio", columns={"precio"}), @ORM\Index(name="fecha_caducidad", columns={"fecha_caducidad"}), @ORM\Index(name="alquiler", columns={"alquiler"}), @ORM\Index(name="precio_alquiler", columns={"precio_alquiler"}), @ORM\Index(name="localidad", columns={"localidad"})})
* @ORM\Entity(repositoryClass="App\Repository\Main\ApiPropertiesRepository")
*/
class ApiProperties
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="id_colegiado", type="integer", nullable=false, options={"unsigned"=true})
*/
private $idColegiado = '0';
/**
* @var int
*
* @ORM\Column(name="id_despacho", type="integer", nullable=false, options={"unsigned"=true})
*/
private $idDespacho = '0';
/**
* @var int
*
* @ORM\Column(name="provincia", type="integer", nullable=false)
*/
private $provincia = '0';
/**
* @var int
*
* @ORM\Column(name="localidad", type="integer", nullable=false)
*/
private $localidad = '0';
/**
* @var int
*
* @ORM\Column(name="zona", type="integer", nullable=false, options={"unsigned"=true})
*/
private $zona = '0';
/**
* @var int
*
* @ORM\Column(name="cod_postal", type="integer", nullable=false)
*/
private $codPostal = '0';
/**
* @var string
*
* @ORM\Column(name="direccion", type="string", length=100, nullable=false, options={"default"="''"})
*/
private $direccion = '\'\'';
/**
* @var bool
*
* @ORM\Column(name="obra_nueva", type="boolean", nullable=false)
*/
private $obraNueva = '0';
/**
* @var bool
*
* @ORM\Column(name="alquiler", type="boolean", nullable=false)
*/
private $alquiler = '0';
/**
* @var bool
*
* @ORM\Column(name="es_subhasta", type="boolean", nullable=false)
*/
private $esSubhasta = '0';
/**
* @var bool
*
* @ORM\Column(name="es_lloguer_temporada", type="boolean", nullable=false)
*/
private $esLloguerTemporada = '0';
/**
* @var bool
*
* @ORM\Column(name="es_banc", type="boolean", nullable=false)
*/
private $esBanc = '0';
/**
* @var string
*
* @ORM\Column(name="superf_util", type="string", length=20, nullable=false)
*/
private $superfUtil;
/**
* @var string
*
* @ORM\Column(name="superf_constr", type="string", length=20, nullable=false)
*/
private $superfConstr;
/**
* @var string
*
* @ORM\Column(name="agencia", type="string", length=20, nullable=false)
*/
private $agencia;
/**
* @var string
*
* @ORM\Column(name="referencia", type="string", length=32, nullable=false)
*/
private $referencia;
/**
* @var string
*
* @ORM\Column(name="glat", type="string", length=15, nullable=false)
*/
private $glat;
/**
* @var string
*
* @ORM\Column(name="glon", type="string", length=15, nullable=false)
*/
private $glon;
/**
* @var string
*
* @ORM\Column(name="ref_catastral", type="string", length=50, nullable=false)
*/
private $refCatastral;
/**
* @var int
*
* @ORM\Column(name="num_fotos", type="integer", nullable=false)
*/
private $numFotos;
/**
* @var bool
*
* @ORM\Column(name="id_tipo_via", type="boolean", nullable=false, options={"default"="1"})
*/
private $idTipoVia = true;
/**
* @var string
*
* @ORM\Column(name="situacion_concreta", type="string", length=150, nullable=false)
*/
private $situacionConcreta;
/**
* @var float
*
* @ORM\Column(name="precio_alquiler", type="float", precision=20, scale=2, nullable=false)
*/
private $precioAlquiler;
/**
* @var float
*
* @ORM\Column(name="precio_alquiler_anterior", type="float", precision=20, scale=2, nullable=false)
*/
private $precioAlquilerAnterior;
/**
* @var float
*
* @ORM\Column(name="precio", type="float", precision=20, scale=2, nullable=false, options={"default"="0.00"})
*/
private $precio = 0.00;
/**
* @var float
*
* @ORM\Column(name="precio_anterior", type="float", precision=20, scale=2, nullable=false)
*/
private $precioAnterior;
/**
* @var bool
*
* @ORM\Column(name="rebajado", type="boolean", nullable=false)
*/
private $rebajado = '0';
/**
* @var float
*
* @ORM\Column(name="precio_subhasta", type="float", precision=20, scale=2, nullable=false, options={"default"="0.00"})
*/
private $precioSubhasta = 0.00;
/**
* @var float
*
* @ORM\Column(name="precio_subhasta_anterior", type="float", precision=20, scale=2, nullable=false)
*/
private $precioSubhastaAnterior;
/**
* @var float
*
* @ORM\Column(name="precio_alquiler_temporada", type="float", precision=20, scale=2, nullable=false)
*/
private $precioAlquilerTemporada;
/**
* @var float
*
* @ORM\Column(name="precio_alquiler_temporada_anterior", type="float", precision=20, scale=2, nullable=false)
*/
private $precioAlquilerTemporadaAnterior;
/**
* @var bool
*
* @ORM\Column(name="estado", type="boolean", nullable=false)
*/
private $estado;
/**
* @var bool
*
* @ORM\Column(name="contrato_exclusividad", type="boolean", nullable=false, options={"default"="1"})
*/
private $contratoExclusividad = true;
/**
* @var int
*
* @ORM\Column(name="idportal", type="integer", nullable=false)
*/
private $idportal;
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_creacion", type="date", nullable=false, options={"default"="'0000-00-00'"})
*/
private $fechaCreacion = '\'0000-00-00\'';
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_importacion", type="datetime", nullable=false)
*/
private $fechaImportacion;
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_caducidad", type="date", nullable=false)
*/
private $fechaCaducidad;
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_update", type="date", nullable=false, options={"default"="'0000-00-00'"})
*/
private $fechaUpdate = '\'0000-00-00\'';
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_disponibilidad", type="date", nullable=false, options={"default"="'0000-00-00'"})
*/
private $fechaDisponibilidad = '\'0000-00-00\'';
/**
* @var int|null
*
* @ORM\Column(name="id_properties_subtype", type="integer", nullable=true, options={"default"="NULL"})
*/
private $idPropertiesSubtype = NULL;
/**
* @var int|null
*
* @ORM\Column(name="id_properties_type", type="integer", nullable=true, options={"default"="NULL"})
*/
private $idPropertiesType = NULL;
/**
* @var int|null
*
* @ORM\Column(name="id_properties_supertype", type="integer", nullable=true, options={"default"="NULL"})
*/
private $idPropertiesSupertype = NULL;
/**
* @var int
*
* @ORM\Column(name="num_dorm", type="integer", nullable=false)
*/
private $numDorm = '0';
/**
* @var int
*
* @ORM\Column(name="contactos", type="integer", nullable=false, options={"unsigned"=true})
*/
private $contactos = '0';
/**
* @var int
*
* @ORM\Column(name="visitas", type="integer", nullable=false, options={"unsigned"=true})
*/
private $visitas;
/**
* @var bool
*
* @ORM\Column(name="disponible", type="boolean", nullable=false, options={"comment"="Libre - 0 / Ocupado - 1"})
*/
private $disponible = '0';
/**
* @var bool
*
* @ORM\Column(name="visibilidad", type="boolean", nullable=false)
*/
private $visibilidad = '0';
/**
* @var bool
*
* @ORM\Column(name="destacado", type="boolean", nullable=false)
*/
private $destacado = '0';
public function getId(): ?int
{
return $this->id;
}
public function getIdColegiado(): ?int
{
return $this->idColegiado;
}
public function setIdColegiado(int $idColegiado): self
{
$this->idColegiado = $idColegiado;
return $this;
}
public function getIdDespacho(): ?int
{
return $this->idDespacho;
}
public function setIdDespacho(int $idDespacho): self
{
$this->idDespacho = $idDespacho;
return $this;
}
public function getProvincia(): ?int
{
return $this->provincia;
}
public function isProvincia(): ?bool
{
return $this->provincia;
}
public function setProvincia(bool $provincia): self
{
$this->provincia = $provincia;
return $this;
}
public function getLocalidad(): ?int
{
return $this->localidad;
}
public function setLocalidad(int $localidad): self
{
$this->localidad = $localidad;
return $this;
}
public function getZona(): ?int
{
return $this->zona;
}
public function setZona(int $zona): self
{
$this->zona = $zona;
return $this;
}
public function getCodPostal(): ?int
{
return $this->codPostal;
}
public function setCodPostal(int $codPostal): self
{
$this->codPostal = $codPostal;
return $this;
}
public function getDireccion(): ?string
{
return $this->direccion;
}
public function setDireccion(string $direccion): self
{
$this->direccion = $direccion;
return $this;
}
public function isObraNueva(): ?bool
{
return $this->obraNueva;
}
public function setObraNueva(bool $obraNueva): self
{
$this->obraNueva = $obraNueva;
return $this;
}
public function isAlquiler(): ?bool
{
return $this->alquiler;
}
public function setAlquiler(bool $alquiler): self
{
$this->alquiler = $alquiler;
return $this;
}
public function isEsSubhasta(): ?bool
{
return $this->esSubhasta;
}
public function setEsSubhasta(bool $esSubhasta): self
{
$this->esSubhasta = $esSubhasta;
return $this;
}
public function isEsLloguerTemporada(): ?bool
{
return $this->esLloguerTemporada;
}
public function setEsLloguerTemporada(bool $esLloguerTemporada): self
{
$this->esLloguerTemporada = $esLloguerTemporada;
return $this;
}
public function isEsBanc(): ?bool
{
return $this->esBanc;
}
public function setEsBanc(bool $esBanc): self
{
$this->esBanc = $esBanc;
return $this;
}
public function getSuperfUtil(): ?string
{
return $this->superfUtil;
}
public function setSuperfUtil(string $superfUtil): self
{
$this->superfUtil = $superfUtil;
return $this;
}
public function getSuperfConstr(): ?string
{
return $this->superfConstr;
}
public function setSuperfConstr(string $superfConstr): self
{
$this->superfConstr = $superfConstr;
return $this;
}
public function getAgencia(): ?string
{
return $this->agencia;
}
public function setAgencia(string $agencia): self
{
$this->agencia = $agencia;
return $this;
}
public function getReferencia(): ?string
{
return $this->referencia;
}
public function setReferencia(string $referencia): self
{
$this->referencia = $referencia;
return $this;
}
public function getGlat(): ?string
{
return $this->glat;
}
public function setGlat(string $glat): self
{
$this->glat = $glat;
return $this;
}
public function getGlon(): ?string
{
return $this->glon;
}
public function setGlon(string $glon): self
{
$this->glon = $glon;
return $this;
}
public function getRefCatastral(): ?string
{
return $this->refCatastral;
}
public function setRefCatastral(string $refCatastral): self
{
$this->refCatastral = $refCatastral;
return $this;
}
public function getNumFotos(): ?int
{
return $this->numFotos;
}
public function isNumFotos(): ?bool
{
return $this->numFotos;
}
public function setNumFotos(bool $numFotos): self
{
$this->numFotos = $numFotos;
return $this;
}
public function isIdTipoVia(): ?bool
{
return $this->idTipoVia;
}
public function setIdTipoVia(bool $idTipoVia): self
{
$this->idTipoVia = $idTipoVia;
return $this;
}
public function getSituacionConcreta(): ?string
{
return $this->situacionConcreta;
}
public function setSituacionConcreta(string $situacionConcreta): self
{
$this->situacionConcreta = $situacionConcreta;
return $this;
}
public function getPrecioAlquiler(): ?float
{
return $this->precioAlquiler;
}
public function setPrecioAlquiler(float $precioAlquiler): self
{
$this->precioAlquiler = $precioAlquiler;
return $this;
}
public function getPrecioAlquilerAnterior(): ?float
{
return $this->precioAlquilerAnterior;
}
public function setPrecioAlquilerAnterior(float $precioAlquilerAnterior): self
{
$this->precioAlquilerAnterior = $precioAlquilerAnterior;
return $this;
}
public function getPrecio(): ?float
{
return $this->precio;
}
public function setPrecio(float $precio): self
{
$this->precio = $precio;
return $this;
}
public function getPrecioAnterior(): ?float
{
return $this->precioAnterior;
}
public function setPrecioAnterior(float $precioAnterior): self
{
$this->precioAnterior = $precioAnterior;
return $this;
}
public function isRebajado(): ?bool
{
return $this->rebajado;
}
public function setRebajado(bool $rebajado): self
{
$this->rebajado = $rebajado;
return $this;
}
public function getPrecioSubhasta(): ?float
{
return $this->precioSubhasta;
}
public function setPrecioSubhasta(float $precioSubhasta): self
{
$this->precioSubhasta = $precioSubhasta;
return $this;
}
public function getPrecioSubhastaAnterior(): ?float
{
return $this->precioSubhastaAnterior;
}
public function setPrecioSubhastaAnterior(float $precioSubhastaAnterior): self
{
$this->precioSubhastaAnterior = $precioSubhastaAnterior;
return $this;
}
public function getPrecioAlquilerTemporada(): ?float
{
return $this->precioAlquilerTemporada;
}
public function setPrecioAlquilerTemporada(float $precioAlquilerTemporada): self
{
$this->precioAlquilerTemporada = $precioAlquilerTemporada;
return $this;
}
public function getPrecioAlquilerTemporadaAnterior(): ?float
{
return $this->precioAlquilerTemporadaAnterior;
}
public function setPrecioAlquilerTemporadaAnterior(float $precioAlquilerTemporadaAnterior): self
{
$this->precioAlquilerTemporadaAnterior = $precioAlquilerTemporadaAnterior;
return $this;
}
public function isEstado(): ?bool
{
return $this->estado;
}
public function setEstado(bool $estado): self
{
$this->estado = $estado;
return $this;
}
public function isContratoExclusividad(): ?bool
{
return $this->contratoExclusividad;
}
public function setContratoExclusividad(bool $contratoExclusividad): self
{
$this->contratoExclusividad = $contratoExclusividad;
return $this;
}
public function getIdportal(): ?int
{
return $this->idportal;
}
public function setIdportal(int $idportal): self
{
$this->idportal = $idportal;
return $this;
}
public function getFechaCreacion(): ?\DateTimeInterface
{
return $this->fechaCreacion;
}
public function setFechaCreacion(\DateTimeInterface $fechaCreacion): self
{
$this->fechaCreacion = $fechaCreacion;
return $this;
}
public function getFechaImportacion(): ?\DateTimeInterface
{
return $this->fechaImportacion;
}
public function setFechaImportacion(\DateTimeInterface $fechaImportacion): self
{
$this->fechaImportacion = $fechaImportacion;
return $this;
}
public function getFechaCaducidad(): ?\DateTimeInterface
{
return $this->fechaCaducidad;
}
public function setFechaCaducidad(\DateTimeInterface $fechaCaducidad): self
{
$this->fechaCaducidad = $fechaCaducidad;
return $this;
}
public function getFechaUpdate(): ?\DateTimeInterface
{
return $this->fechaUpdate;
}
public function setFechaUpdate(\DateTimeInterface $fechaUpdate): self
{
$this->fechaUpdate = $fechaUpdate;
return $this;
}
public function getFechaDisponibilidad(): ?\DateTimeInterface
{
return $this->fechaDisponibilidad;
}
public function setFechaDisponibilidad(\DateTimeInterface $fechaDisponibilidad): self
{
$this->fechaDisponibilidad = $fechaDisponibilidad;
return $this;
}
public function getIdPropertiesSubtype(): ?int
{
return $this->idPropertiesSubtype;
}
public function setIdPropertiesSubtype(?int $idPropertiesSubtype): self
{
$this->idPropertiesSubtype = $idPropertiesSubtype;
return $this;
}
public function getIdPropertiesType(): ?int
{
return $this->idPropertiesType;
}
public function setIdPropertiesType(?int $idPropertiesType): self
{
$this->idPropertiesType = $idPropertiesType;
return $this;
}
public function getIdPropertiesSupertype(): ?int
{
return $this->idPropertiesSupertype;
}
public function setIdPropertiesSupertype(?int $idPropertiesSupertype): self
{
$this->idPropertiesSupertype = $idPropertiesSupertype;
return $this;
}
public function getNumDorm(): ?int
{
return $this->numDorm;
}
public function setNumDorm(int $numDorm): self
{
$this->numDorm = $numDorm;
return $this;
}
public function getContactos(): ?int
{
return $this->contactos;
}
public function setContactos(int $contactos): self
{
$this->contactos = $contactos;
return $this;
}
public function getVisitas(): ?int
{
return $this->visitas;
}
public function setVisitas(int $visitas): self
{
$this->visitas = $visitas;
return $this;
}
public function isDisponible(): ?bool
{
return $this->disponible;
}
public function setDisponible(bool $disponible): self
{
$this->disponible = $disponible;
return $this;
}
public function isVisibilidad(): ?bool
{
return $this->visibilidad;
}
public function setVisibilidad(bool $visibilidad): self
{
$this->visibilidad = $visibilidad;
return $this;
}
public function isDestacado(): ?bool
{
return $this->destacado;
}
public function setDestacado(bool $destacado): self
{
$this->destacado = $destacado;
return $this;
}
}