PhpSigep\Pdf\CartaoDePostagem2016::writeDestinatario PHP Метод

writeDestinatario() приватный Метод

private writeDestinatario ( $l, $t, $w, $objetoPostal )
$l
$t
$w
$objetoPostal
    private function writeDestinatario($l, $t, $w, $objetoPostal)
    {
        $l = $this->pdf->GetX();
        $t1 = $this->pdf->GetY();
        $l = 0;
        $titulo = 'Destinatário';
        $nomeDestinatario = $objetoPostal->getDestinatario()->getNome();
        $logradouro = $objetoPostal->getDestinatario()->getLogradouro();
        $numero = $objetoPostal->getDestinatario()->getNumero();
        $complemento = $objetoPostal->getDestinatario()->getComplemento();
        $bairro = '';
        $cidade = '';
        $uf = '';
        $cep = '';
        $destino = $objetoPostal->getDestino();
        if ($destino instanceof \PhpSigep\Model\DestinoNacional) {
            $bairro = $destino->getBairro();
            $cidade = $destino->getCidade();
            $uf = $destino->getUf();
            $cep = $destino->getCep();
        }
        $cep = preg_replace('/(\\d{5})-{0,1}(\\d{3})/', '$1-$2', $cep);
        $t = $this->writeEndereco($t1, $l, $w, $titulo, $nomeDestinatario, $logradouro, $numero, $complemento, $bairro, $cidade, $uf, $cep);
        $this->pdf->Rect($l + 2, $t1, 90, $t - $t1 + 25);
        return $t;
    }