<?php
/*
* This file is part of the Novo SGA project.
*
* (c) Rogerio Lino <rogeriolino@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Novosga\Entity;
/**
* Endereco
*
* @author Rogerio Lino <rogeriolino@gmail.com>
*/
class Endereco implements \JsonSerializable
{
/**
* @var string
*/
private $pais;
/**
* @var string
*/
private $cidade;
/**
* @var string
*/
private $estado;
/**
* @var string
*/
private $cep;
/**
* @var string
*/
private $logradouro;
/**
* @var string
*/
private $numero;
/**
* @var string
*/
private $complemento;
public function getNumero(): ?string
{
return $this->numero;
}
public function setNumero(?string $numero): self
{
$this->numero = $numero;
return $this;
}
public function getComplemento(): ?string
{
return $this->complemento;
}
public function setComplemento(?string $complemento): self
{
$this->complemento = $complemento;
return $this;
}
public function getLogradouro(): ?string
{
return $this->logradouro;
}
public function setLogradouro(?string $logradouro): self
{
$this->logradouro = $logradouro;
return $this;
}
public function getCep(): ?string
{
return $this->cep;
}
public function setCep(string $cep): self
{
$this->cep = $cep;
return $this;
}
public function getEstado(): ?string
{
return $this->estado;
}
public function setEstado(?string $estado): self
{
$this->estado = $estado;
return $this;
}
public function getCidade(): ?string
{
return $this->cidade;
}
public function setCidade(?string $cidade): self
{
$this->cidade = $cidade;
return $this;
}
public function getPais(): ?string
{
return $this->pais;
}
public function setPais(?string $pais): self
{
$this->pais = $pais;
return $this;
}
public function jsonSerialize()
{
return [
'pais' => $this->getPais(),
'estado' => $this->getEstado(),
'cidade' => $this->getCidade(),
'cep' => $this->getCep(),
'logradouro' => $this->getLogradouro(),
'numero' => $this->getNumero(),
'complemento' => $this->getComplemento(),
];
}
}