Advertisement
Guest User

Untitled

a guest
Sep 20th, 2012
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.33 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Incra\PropriedadesBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\DBAL\Types\Type;
  7.  
  8.  
  9. /**
  10.  * Incra\PropriedadesBundle\Entity\Propriedades
  11.  *
  12.  * @ORM\Table()
  13.  * @ORM\Entity(repositoryClass="Incra\PropriedadesBundle\Entity\PropriedadesRepository")
  14.  */
  15. class Propriedades
  16. {
  17.     /**
  18.      * @var integer $id
  19.      *
  20.      * @ORM\Column(name="id", type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.  
  26.  
  27.  
  28.     /**
  29.      * @var string $dono
  30.      *
  31.      * @ORM\Column(name="name", type="string", length=255,nullable=TRUE)
  32.      */
  33.     private $name;
  34.  
  35.     /**
  36.      * @var string $dono
  37.      *
  38.      * @ORM\Column(name="descripcion", type="text",nullable=TRUE)
  39.      */
  40.     private $descripcion;
  41.  
  42.     /**
  43.      * @var string $dono
  44.      *
  45.      * @ORM\Column(name="num_lote", type="string", length=255)
  46.      */
  47.     private $num_lote;
  48.  
  49.     /**
  50.      * @var string $dono
  51.      *
  52.      * @ORM\Column(name="cod_imovel", type="string", length=255)
  53.      */
  54.     private $cod_imovel;
  55.  
  56.     /**
  57.      * @var string $dono
  58.      *
  59.      * @ORM\Column(name="imovel", type="string", length=255)
  60.      */
  61.     private $imovel;
  62.  
  63.     /**
  64.      * @var string $dono
  65.      *
  66.      * @ORM\Column(name="convenio", type="string", length=255)
  67.      */
  68.     private $convenio;
  69.  
  70.     /**
  71.      * @var string $dono
  72.      *
  73.      * @ORM\Column(name="proprietar", type="string", length=255)
  74.      */
  75.     private $proprietar;
  76.  
  77.     /**
  78.     * @var string $cpf
  79.     *
  80.     * @ORM\Column(name="cpf", type="string", length=255)
  81.     */
  82.     private $cpf;
  83.  
  84.     /**
  85.     * @var string $area_ha
  86.     *
  87.     * @ORM\Column(name="area_ha", type="float")
  88.     */
  89.     private $area_ha;
  90.  
  91.     /**
  92.     * @var string $perimetro
  93.     *
  94.     * @ORM\Column(name="perimetro", type="float")
  95.     */
  96.     private $perimetro;
  97.  
  98.     /**
  99.     * @var string $location
  100.     *
  101.     * @ORM\Column(name="location", type="polygon")
  102.     */
  103.     private $location;
  104.  
  105.     /**
  106.     * @var string $referencia
  107.     *
  108.     * @ORM\Column(name="referencia", type="integer",nullable=TRUE)
  109.     */
  110.     private $referencia;
  111.  
  112.  
  113.     /**
  114.     * @var string $referencia
  115.     *
  116.     * @ORM\Column(name="centro", type="point")
  117.     */
  118.     private $centro;
  119.  
  120.     private $area_int;
  121.  
  122.     private $area;
  123.    
  124.  
  125.  
  126. public function setArea($area)
  127.     {
  128.         $this->area = $area;
  129.         return $this;
  130.     }
  131.  
  132.     /**
  133.      * Get name
  134.      *
  135.      * @return string
  136.      */
  137.     public function getArea()
  138.     {
  139.         return $this->area;
  140.     }
  141.  
  142.     public function setAreaInt($area_int)
  143.     {
  144.         $this->area_int = $area_int;
  145.         return $this;
  146.     }
  147.  
  148.     /**
  149.      * Get name
  150.      *
  151.      * @return string
  152.      */
  153.     public function getAreaInt()
  154.     {
  155.         return $this->area_int;
  156.     }
  157.  
  158.  
  159.     public function getId()
  160.     {
  161.         return $this->id;
  162.     }
  163.  
  164.     /**
  165.      * Set name
  166.      *
  167.      * @param string $name
  168.      * @return Propriedades
  169.      */
  170.     public function setName($name)
  171.     {
  172.         $this->name = $name;
  173.         return $this;
  174.     }
  175.  
  176.     /**
  177.      * Get name
  178.      *
  179.      * @return string
  180.      */
  181.     public function getName()
  182.     {
  183.         return $this->name;
  184.     }
  185.  
  186.     /**
  187.      * Set descripcion
  188.      *
  189.      * @param text $descripcion
  190.      * @return Propriedades
  191.      */
  192.     public function setDescripcion($descripcion)
  193.     {
  194.         $this->descripcion = $descripcion;
  195.         return $this;
  196.     }
  197.  
  198.     /**
  199.      * Get descripcion
  200.      *
  201.      * @return text
  202.      */
  203.     public function getDescripcion()
  204.     {
  205.         return $this->descripcion;
  206.     }
  207.  
  208.     /**
  209.      * Set num_lote
  210.      *
  211.      * @param string $numLote
  212.      * @return Propriedades
  213.      */
  214.     public function setNumLote($numLote)
  215.     {
  216.         $this->num_lote = $numLote;
  217.         return $this;
  218.     }
  219.  
  220.     /**
  221.      * Get num_lote
  222.      *
  223.      * @return string
  224.      */
  225.     public function getNumLote()
  226.     {
  227.         return $this->num_lote;
  228.     }
  229.  
  230.     /**
  231.      * Set cod_imovel
  232.      *
  233.      * @param string $codImovel
  234.      * @return Propriedades
  235.      */
  236.     public function setCodImovel($codImovel)
  237.     {
  238.         $this->cod_imovel = $codImovel;
  239.         return $this;
  240.     }
  241.  
  242.     /**
  243.      * Get cod_imovel
  244.      *
  245.      * @return string
  246.      */
  247.     public function getCodImovel()
  248.     {
  249.         return $this->cod_imovel;
  250.     }
  251.  
  252.     /**
  253.      * Set imovel
  254.      *
  255.      * @param string $imovel
  256.      * @return Propriedades
  257.      */
  258.     public function setImovel($imovel)
  259.     {
  260.         $this->imovel = $imovel;
  261.         return $this;
  262.     }
  263.  
  264.     /**
  265.      * Get imovel
  266.      *
  267.      * @return string
  268.      */
  269.     public function getImovel()
  270.     {
  271.         return $this->imovel;
  272.     }
  273.  
  274.     /**
  275.      * Set convenio
  276.      *
  277.      * @param string $convenio
  278.      * @return Propriedades
  279.      */
  280.     public function setConvenio($convenio)
  281.     {
  282.         $this->convenio = $convenio;
  283.         return $this;
  284.     }
  285.  
  286.     /**
  287.      * Get convenio
  288.      *
  289.      * @return string
  290.      */
  291.     public function getConvenio()
  292.     {
  293.         return $this->convenio;
  294.     }
  295.  
  296.     /**
  297.      * Set proprietar
  298.      *
  299.      * @param string $proprietar
  300.      * @return Propriedades
  301.      */
  302.     public function setProprietar($proprietar)
  303.     {
  304.         $this->proprietar = $proprietar;
  305.         return $this;
  306.     }
  307.  
  308.     /**
  309.      * Get proprietar
  310.      *
  311.      * @return string
  312.      */
  313.     public function getProprietar()
  314.     {
  315.         return $this->proprietar;
  316.     }
  317.  
  318.     /**
  319.      * Set cpf
  320.      *
  321.      * @param string $cpf
  322.      * @return Propriedades
  323.      */
  324.     public function setCpf($cpf)
  325.     {
  326.         $this->cpf = $cpf;
  327.         return $this;
  328.     }
  329.  
  330.     /**
  331.      * Get cpf
  332.      *
  333.      * @return string
  334.      */
  335.     public function getCpf()
  336.     {
  337.         return $this->cpf;
  338.     }
  339.  
  340.     /**
  341.      * Set area_ha
  342.      *
  343.      * @param float $areaHa
  344.      * @return Propriedades
  345.      */
  346.     public function setAreaHa($areaHa)
  347.     {
  348.         $this->area_ha = $areaHa;
  349.         return $this;
  350.     }
  351.  
  352.     /**
  353.      * Get area_ha
  354.      *
  355.      * @return float
  356.      */
  357.     public function getAreaHa()
  358.     {
  359.         return $this->area_ha;
  360.     }
  361.  
  362.     /**
  363.      * Set perimetro
  364.      *
  365.      * @param float $perimetro
  366.      * @return Propriedades
  367.      */
  368.     public function setPerimetro($perimetro)
  369.     {
  370.         $this->perimetro = $perimetro;
  371.         return $this;
  372.     }
  373.  
  374.     /**
  375.      * Get perimetro
  376.      *
  377.      * @return float
  378.      */
  379.     public function getPerimetro()
  380.     {
  381.         return $this->perimetro;
  382.     }
  383.  
  384.     public function setLocation($location)
  385.     {
  386.         $dbval = 'POLYGON((%s))';
  387.         $value = sprintf($dbval,$location);
  388.         $this->setCentro($value);
  389.         $this->location = $value;
  390.     }
  391.  
  392.     public function getLocation()
  393.     {
  394.         return $this->location;
  395.     }
  396.  
  397.     public function setReferencia($referencia)
  398.     {
  399.         $this->referencia = $referencia;
  400.         return $this;
  401.     }
  402.  
  403.     /**
  404.      * Get referencia
  405.      *
  406.      * @return string
  407.      */
  408.     public function getReferencia()
  409.     {
  410.         return $this->referencia;
  411.     }
  412.  
  413.     public function setCentro($centro)
  414.     {
  415.         $this->centro =  $centro;
  416.         return $this;
  417.     }
  418.  
  419.     public function getCentro()
  420.     {
  421.         return $this->centro;
  422.     }
  423.  
  424. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement