for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Itau\API\BoleCode;
use Itau\API\StringHelper;
use Itau\API\TraitEntity;
use JsonSerializable;
class Pessoa implements JsonSerializable
{
use TraitEntity;
private string $nome_pessoa;
private TipoPessoa $tipo_pessoa;
public function setNomePessoa($nome): self
$this->nome_pessoa = StringHelper::removerAcentos($nome);
return $this;
}
public function tipoPessoa(): TipoPessoa
$tipoPessoa = new TipoPessoa();
$this->setTipoPessoa($tipoPessoa);
return $tipoPessoa;
public function setTipoPessoa(TipoPessoa $tipoPessoa): self
$this->tipo_pessoa = $tipoPessoa;