mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Implemented test and constructor for FullPersonNameSource
This commit is contained in:
@@ -11,12 +11,12 @@ trait SurnameSourceAttribut
|
||||
*/
|
||||
protected $surnameSource;
|
||||
|
||||
public function getSurname(): SurnameSourceInterface
|
||||
public function getSurnameSource(): SurnameSourceInterface
|
||||
{
|
||||
return $this->surnameSource;
|
||||
}
|
||||
|
||||
public function setSurname(SurnameSourceInterface $name): void
|
||||
public function setSurnameSource(SurnameSourceInterface $name): void
|
||||
{
|
||||
$this->surnameSource = $name;
|
||||
}
|
||||
|
@@ -6,7 +6,7 @@ use App\Entity\Source\Data\Name\SurnameSourceInterface;
|
||||
|
||||
interface SurnameSourceAttributInterface
|
||||
{
|
||||
public function getSurname(): SurnameSourceInterface;
|
||||
public function getSurnameSource(): SurnameSourceInterface;
|
||||
|
||||
public function setSurname(SurnameSourceInterface $name): void;
|
||||
public function setSurnameSource(SurnameSourceInterface $name): void;
|
||||
}
|
||||
|
@@ -4,8 +4,17 @@ namespace App\Entity\Source\Combination;
|
||||
|
||||
use App\Entity\Attribut\FirstNameSourceAttribut;
|
||||
use App\Entity\Attribut\SurnameSourceAttribut;
|
||||
use App\Entity\Source\Data\Name\SurnameSource;
|
||||
use App\Entity\Source\Data\Name\FirstNameSource;
|
||||
|
||||
class FullPersonNameSource extends AbstractCombinationSource implements FullPersonNameSourceInterface
|
||||
{
|
||||
use FirstNameSourceAttribut,SurnameSourceAttribut;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->surnameSource = new SurnameSource();
|
||||
$this->firstNameSource = new FirstNameSource();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user