infinito/application/symfony/src/Attribut/RightsAttribute.php

27 lines
385 B
PHP
Raw Normal View History

2018-09-13 15:55:48 +02:00
<?php
2018-09-13 16:51:58 +02:00
2019-01-20 10:41:58 +01:00
namespace App\Attribut;
2018-09-13 15:55:48 +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
/**
* @var Collection
2018-09-13 15:55:48 +02:00
*/
protected $rights;
2018-09-13 16:51:58 +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
public function getRights(): Collection
2018-09-13 16:51:58 +02:00
{
2018-09-13 15:55:48 +02:00
return $this->rights;
}
}