Solved bugs to allow unit tests to run

This commit is contained in:
Kevin Frantz
2018-11-15 19:55:03 +01:00
parent 647bc81965
commit de66375ee0
9 changed files with 61 additions and 42 deletions

View File

@@ -4,9 +4,20 @@ namespace App\Entity\Attribut;
use App\Entity\Source\Data\Name\SurnameSourceInterface;
interface SurnameSourceAttributInterface
trait SurnameSourceAttribut
{
public function getSurname(): SurnameSourceInterface;
/**
* @var SurnameSourceInterface
*/
protected $surnameSource;
public function setSurname(SurnameSourceInterface $name): void;
public function getSurname(): SurnameSourceInterface
{
return $this->surnameSource;
}
public function setSurname(SurnameSourceInterface $name): void
{
$this->surnameSource = $name;
}
}