<?php

class Seguro_Entity_Beneficiario
{
    private ?string $cpfCnpj;
    private ?string $nome;
    private ?string $nomeSocial;
    private Seguro_ValueObject_Beneficiario_Endereco $endereco;

    public function __construct(
        ?string                                  $nome,
        ?string                                  $nomeSocial,
        ?string                                  $cpfCnpj,
        Seguro_ValueObject_Beneficiario_Endereco $endereco
    )
    {
        $this->nome = $nome;
        $this->nomeSocial = $nomeSocial;
        $this->cpfCnpj = $cpfCnpj;
        $this->endereco = $endereco;
    }

    public function getCpfCnpj(): ?string
    {
        return $this->cpfCnpj;
    }

    public function getEndereco(): Seguro_ValueObject_Beneficiario_Endereco
    {
        return $this->endereco;
    }

    public function getNome(): ?string
    {
        return $this->nome;
    }

    public function getNomeSocial(): ?string
    {
        return $this->nomeSocial;
    }
}