Optimized Attributes and tests for it

This commit is contained in:
Kevin Frantz
2019-02-07 13:14:55 +01:00
parent f85b0118a7
commit 25e63d4983
13 changed files with 245 additions and 11 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Attribut;
use Doctrine\Common\Collections\Collection;
/**
* @author kevinfrantz
*
* @see RightsAttributInterface
*/
trait RightsAttribut
{
/**
* @var Collection
*/
protected $rights;
public function setRights(Collection $rights): void
{
$this->rights = $rights;
}
public function getRights(): Collection
{
return $this->rights;
}
}