2018-09-13 15:55:48 +02:00
|
|
|
<?php
|
2018-09-13 16:51:58 +02:00
|
|
|
|
2018-09-13 16:37:33 +02:00
|
|
|
namespace App\Entity\Attribut;
|
2018-09-13 15:55:48 +02:00
|
|
|
|
2018-09-14 18:26:09 +02:00
|
|
|
use Doctrine\Common\Collections\Collection;
|
2018-09-13 15:55:48 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
2018-09-13 16:51:58 +02:00
|
|
|
trait RightsAttribute
|
|
|
|
{
|
2018-09-13 15:55:48 +02:00
|
|
|
/**
|
2018-09-14 18:26:09 +02:00
|
|
|
* @var Collection
|
2018-09-13 15:55:48 +02:00
|
|
|
*/
|
|
|
|
protected $rights;
|
2018-09-13 16:51:58 +02:00
|
|
|
|
2018-09-14 18:26:09 +02:00
|
|
|
public function setRights(Collection $rights): void
|
2018-09-13 16:51:58 +02:00
|
|
|
{
|
2018-09-13 15:55:48 +02:00
|
|
|
$this->rights = $rights;
|
|
|
|
}
|
2018-09-13 16:51:58 +02:00
|
|
|
|
2018-09-14 18:26:09 +02:00
|
|
|
public function getRights(): Collection
|
2018-09-13 16:51:58 +02:00
|
|
|
{
|
2018-09-13 15:55:48 +02:00
|
|
|
return $this->rights;
|
|
|
|
}
|
|
|
|
}
|