vendor/novosga/core/Entity/Endereco.php line 19

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Novo SGA project.
  4.  *
  5.  * (c) Rogerio Lino <rogeriolino@gmail.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Novosga\Entity;
  11. /**
  12.  * Endereco
  13.  *
  14.  * @author Rogerio Lino <rogeriolino@gmail.com>
  15.  */
  16. class Endereco implements \JsonSerializable
  17. {
  18.     /**
  19.      * @var string
  20.      */
  21.     private $pais;
  22.     
  23.     /**
  24.      * @var string
  25.      */
  26.     private $cidade;
  27.     /**
  28.      * @var string
  29.      */
  30.     private $estado;
  31.     /**
  32.      * @var string
  33.      */
  34.     private $cep;
  35.     /**
  36.      * @var string
  37.      */
  38.     private $logradouro;
  39.     /**
  40.      * @var string
  41.      */
  42.     private $numero;
  43.     /**
  44.      * @var string
  45.      */
  46.     private $complemento;
  47.     public function getNumero(): ?string
  48.     {
  49.         return $this->numero;
  50.     }
  51.     public function setNumero(?string $numero): self
  52.     {
  53.         $this->numero $numero;
  54.         return $this;
  55.     }
  56.     public function getComplemento(): ?string
  57.     {
  58.         return $this->complemento;
  59.     }
  60.     public function setComplemento(?string $complemento): self
  61.     {
  62.         $this->complemento $complemento;
  63.         return $this;
  64.     }
  65.     public function getLogradouro(): ?string
  66.     {
  67.         return $this->logradouro;
  68.     }
  69.     public function setLogradouro(?string $logradouro): self
  70.     {
  71.         $this->logradouro $logradouro;
  72.         return $this;
  73.     }
  74.     public function getCep(): ?string
  75.     {
  76.         return $this->cep;
  77.     }
  78.     public function setCep(string $cep): self
  79.     {
  80.         $this->cep $cep;
  81.         return $this;
  82.     }
  83.     public function getEstado(): ?string
  84.     {
  85.         return $this->estado;
  86.     }
  87.     public function setEstado(?string $estado): self
  88.     {
  89.         $this->estado $estado;
  90.         return $this;
  91.     }
  92.     public function getCidade(): ?string
  93.     {
  94.         return $this->cidade;
  95.     }
  96.     public function setCidade(?string $cidade): self
  97.     {
  98.         $this->cidade $cidade;
  99.         return $this;
  100.     }
  101.     public function getPais(): ?string
  102.     {
  103.         return $this->pais;
  104.     }
  105.     public function setPais(?string $pais): self
  106.     {
  107.         $this->pais $pais;
  108.         return $this;
  109.     }
  110.     public function jsonSerialize()
  111.     {
  112.         return [
  113.             'pais' => $this->getPais(),
  114.             'estado' => $this->getEstado(),
  115.             'cidade' => $this->getCidade(),
  116.             'cep' => $this->getCep(),
  117.             'logradouro' => $this->getLogradouro(),
  118.             'numero' => $this->getNumero(),
  119.             'complemento' => $this->getComplemento(),
  120.         ];
  121.     }
  122. }