Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Incra\PropriedadesBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Doctrine\DBAL\Types\Type;
- /**
- * Incra\PropriedadesBundle\Entity\Propriedades
- *
- * @ORM\Table()
- * @ORM\Entity(repositoryClass="Incra\PropriedadesBundle\Entity\PropriedadesRepository")
- */
- class Propriedades
- {
- /**
- * @var integer $id
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string $dono
- *
- * @ORM\Column(name="name", type="string", length=255,nullable=TRUE)
- */
- private $name;
- /**
- * @var string $dono
- *
- * @ORM\Column(name="descripcion", type="text",nullable=TRUE)
- */
- private $descripcion;
- /**
- * @var string $dono
- *
- * @ORM\Column(name="num_lote", type="string", length=255)
- */
- private $num_lote;
- /**
- * @var string $dono
- *
- * @ORM\Column(name="cod_imovel", type="string", length=255)
- */
- private $cod_imovel;
- /**
- * @var string $dono
- *
- * @ORM\Column(name="imovel", type="string", length=255)
- */
- private $imovel;
- /**
- * @var string $dono
- *
- * @ORM\Column(name="convenio", type="string", length=255)
- */
- private $convenio;
- /**
- * @var string $dono
- *
- * @ORM\Column(name="proprietar", type="string", length=255)
- */
- private $proprietar;
- /**
- * @var string $cpf
- *
- * @ORM\Column(name="cpf", type="string", length=255)
- */
- private $cpf;
- /**
- * @var string $area_ha
- *
- * @ORM\Column(name="area_ha", type="float")
- */
- private $area_ha;
- /**
- * @var string $perimetro
- *
- * @ORM\Column(name="perimetro", type="float")
- */
- private $perimetro;
- /**
- * @var string $location
- *
- * @ORM\Column(name="location", type="polygon")
- */
- private $location;
- /**
- * @var string $referencia
- *
- * @ORM\Column(name="referencia", type="integer",nullable=TRUE)
- */
- private $referencia;
- /**
- * @var string $referencia
- *
- * @ORM\Column(name="centro", type="point")
- */
- private $centro;
- private $area_int;
- private $area;
- public function setArea($area)
- {
- $this->area = $area;
- return $this;
- }
- /**
- * Get name
- *
- * @return string
- */
- public function getArea()
- {
- return $this->area;
- }
- public function setAreaInt($area_int)
- {
- $this->area_int = $area_int;
- return $this;
- }
- /**
- * Get name
- *
- * @return string
- */
- public function getAreaInt()
- {
- return $this->area_int;
- }
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set name
- *
- * @param string $name
- * @return Propriedades
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
- /**
- * Get name
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Set descripcion
- *
- * @param text $descripcion
- * @return Propriedades
- */
- public function setDescripcion($descripcion)
- {
- $this->descripcion = $descripcion;
- return $this;
- }
- /**
- * Get descripcion
- *
- * @return text
- */
- public function getDescripcion()
- {
- return $this->descripcion;
- }
- /**
- * Set num_lote
- *
- * @param string $numLote
- * @return Propriedades
- */
- public function setNumLote($numLote)
- {
- $this->num_lote = $numLote;
- return $this;
- }
- /**
- * Get num_lote
- *
- * @return string
- */
- public function getNumLote()
- {
- return $this->num_lote;
- }
- /**
- * Set cod_imovel
- *
- * @param string $codImovel
- * @return Propriedades
- */
- public function setCodImovel($codImovel)
- {
- $this->cod_imovel = $codImovel;
- return $this;
- }
- /**
- * Get cod_imovel
- *
- * @return string
- */
- public function getCodImovel()
- {
- return $this->cod_imovel;
- }
- /**
- * Set imovel
- *
- * @param string $imovel
- * @return Propriedades
- */
- public function setImovel($imovel)
- {
- $this->imovel = $imovel;
- return $this;
- }
- /**
- * Get imovel
- *
- * @return string
- */
- public function getImovel()
- {
- return $this->imovel;
- }
- /**
- * Set convenio
- *
- * @param string $convenio
- * @return Propriedades
- */
- public function setConvenio($convenio)
- {
- $this->convenio = $convenio;
- return $this;
- }
- /**
- * Get convenio
- *
- * @return string
- */
- public function getConvenio()
- {
- return $this->convenio;
- }
- /**
- * Set proprietar
- *
- * @param string $proprietar
- * @return Propriedades
- */
- public function setProprietar($proprietar)
- {
- $this->proprietar = $proprietar;
- return $this;
- }
- /**
- * Get proprietar
- *
- * @return string
- */
- public function getProprietar()
- {
- return $this->proprietar;
- }
- /**
- * Set cpf
- *
- * @param string $cpf
- * @return Propriedades
- */
- public function setCpf($cpf)
- {
- $this->cpf = $cpf;
- return $this;
- }
- /**
- * Get cpf
- *
- * @return string
- */
- public function getCpf()
- {
- return $this->cpf;
- }
- /**
- * Set area_ha
- *
- * @param float $areaHa
- * @return Propriedades
- */
- public function setAreaHa($areaHa)
- {
- $this->area_ha = $areaHa;
- return $this;
- }
- /**
- * Get area_ha
- *
- * @return float
- */
- public function getAreaHa()
- {
- return $this->area_ha;
- }
- /**
- * Set perimetro
- *
- * @param float $perimetro
- * @return Propriedades
- */
- public function setPerimetro($perimetro)
- {
- $this->perimetro = $perimetro;
- return $this;
- }
- /**
- * Get perimetro
- *
- * @return float
- */
- public function getPerimetro()
- {
- return $this->perimetro;
- }
- public function setLocation($location)
- {
- $dbval = 'POLYGON((%s))';
- $value = sprintf($dbval,$location);
- $this->setCentro($value);
- $this->location = $value;
- }
- public function getLocation()
- {
- return $this->location;
- }
- public function setReferencia($referencia)
- {
- $this->referencia = $referencia;
- return $this;
- }
- /**
- * Get referencia
- *
- * @return string
- */
- public function getReferencia()
- {
- return $this->referencia;
- }
- public function setCentro($centro)
- {
- $this->centro = $centro;
- return $this;
- }
- public function getCentro()
- {
- return $this->centro;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement