Adde name source to user

This commit is contained in:
Kevin Frantz
2018-09-14 14:39:47 +02:00
parent bfd5d9416e
commit 1d7aaeb1dd
10 changed files with 82 additions and 30 deletions

View File

@@ -1,27 +1,24 @@
<?php
namespace App\Entity\Attribut;
/**
*
* @author kevinfrantz
*
*/
trait NameAttribut {
trait NameAttribut
{
/**
*
* @var string
*/
protected $name;
public function setName(string $name): void
{
$this->name = $name;
}
public function getName(): string
{
return $this->name;
}
}

View File

@@ -1,15 +1,13 @@
<?php
namespace App\Entity\Attribut;
/**
*
* @author kevinfrantz
*
*/
interface NameAttributInterface
{
public function setName(string $name):void;
public function getName():string;
}
public function setName(string $name): void;
public function getName(): string;
}

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Entity\Attribut;
use App\Entity\NameSourceInterface;
/**
* @author kevinfrantz
*/
trait NameSourceAttribut
{
/**
* @var NameSourceInterface
*/
protected $nameSource;
public function setNameSource(NameSourceInterface $nameSource): void
{
$this->nameSource = $nameSource;
}
public function getNameSource(): NameSourceInterface
{
return $this->getNameSource();
}
}

View File

@@ -0,0 +1,15 @@
<?php
namespace App\Entity\Attribut;
use App\Entity\NameSourceInterface;
/**
* @author kevinfrantz
*/
interface NameSourceAttributInterface
{
public function setNameSource(NameSourceInterface $nameSource): void;
public function getNameSource(): NameSourceInterface;
}