Optimized Tests and attributes

This commit is contained in:
Kevin Frantz
2019-01-27 18:38:21 +01:00
parent 0593a8f1c3
commit 17a6ee1dc6
7 changed files with 45 additions and 6 deletions

View File

@@ -6,6 +6,8 @@ use App\Entity\Meta\LawInterface;
/**
* @author kevinfrantz
*
* @see LawAttributInterface
*/
trait LawAttribut
{
@@ -14,11 +16,17 @@ trait LawAttribut
*/
protected $law;
/**
* @param LawInterface $law
*/
public function setLaw(LawInterface $law): void
{
$this->law = $law;
}
/**
* @return LawInterface
*/
public function getLaw(): LawInterface
{
return $this->law;