diff --git a/application/src/Entity/Attribut/NameAttribut.php b/application/src/Entity/Attribut/NameAttribut.php index b27a0c9..0d7fa74 100644 --- a/application/src/Entity/Attribut/NameAttribut.php +++ b/application/src/Entity/Attribut/NameAttribut.php @@ -1,27 +1,24 @@ name = $name; } - + public function getName(): string { return $this->name; } } - diff --git a/application/src/Entity/Attribut/NameAttributInterface.php b/application/src/Entity/Attribut/NameAttributInterface.php index 7904b53..083527c 100644 --- a/application/src/Entity/Attribut/NameAttributInterface.php +++ b/application/src/Entity/Attribut/NameAttributInterface.php @@ -1,15 +1,13 @@ nameSource = $nameSource; + } + + public function getNameSource(): NameSourceInterface + { + return $this->getNameSource(); + } +} diff --git a/application/src/Entity/Attribut/NameSourceAttributInterface.php b/application/src/Entity/Attribut/NameSourceAttributInterface.php new file mode 100644 index 0000000..22ddae5 --- /dev/null +++ b/application/src/Entity/Attribut/NameSourceAttributInterface.php @@ -0,0 +1,15 @@ +name = ''; + } +} diff --git a/application/src/Entity/NameSourceInterface.php b/application/src/Entity/NameSourceInterface.php index 848ee6c..f85d6ab 100644 --- a/application/src/Entity/NameSourceInterface.php +++ b/application/src/Entity/NameSourceInterface.php @@ -1,14 +1,12 @@ nameSource = new NameSource(); + parent::__construct(); + } } diff --git a/application/src/Entity/UserSourceInterface.php b/application/src/Entity/UserSourceInterface.php index c379129..2a3b87a 100644 --- a/application/src/Entity/UserSourceInterface.php +++ b/application/src/Entity/UserSourceInterface.php @@ -3,10 +3,11 @@ namespace App\Entity; use App\Entity\Attribut\UserAttributInterface; +use App\Entity\Attribut\NameSourceAttributInterface; /** * @author kevinfrantz */ -interface UserSourceInterface extends SourceInterface, UserAttributInterface +interface UserSourceInterface extends SourceInterface, UserAttributInterface, NameSourceAttributInterface { } diff --git a/application/src/Form/NameSourceType.php b/application/src/Form/NameSourceType.php index 8be0342..63020a7 100644 --- a/application/src/Form/NameSourceType.php +++ b/application/src/Form/NameSourceType.php @@ -1,12 +1,10 @@