<?php
namespace App\Entities\Exame;

use App\Utils\Builder;
use App\Utils\Entity;

class ExameBuilder implements Builder
{
    protected $id;
    protected $nome;

    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    public function setNome($nome)
    {
        $this->nome = $nome;
        return $this;
    }





    public function build() : Exame
    {
        $exame = new Exame();
        if (isset($this->id)) {
            $exame->setId($this->id);
        }
        if (isset($this->nome)) {
            $exame->setNome($this->nome);
        }
        return $exame;
    }
}