mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized Attributes and tests for it
This commit is contained in:
28
application/symfony/src/Attribut/RightsAttribut.php
Normal file
28
application/symfony/src/Attribut/RightsAttribut.php
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user