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

@@ -1,10 +1,10 @@
<?php
namespace Entity\Attribut;
namespace App\Entity\Attribut;
use App\Entity\Source\Data\PersonIdentitySourceInterface;
trait PersonIdentityAttribut
trait PersonIdentitySourceAttribut
{
/**
* @var PersonIdentitySourceInterface

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;
}
}

View File

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