mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-11 14:57:28 +01:00
43 lines
815 B
PHP
43 lines
815 B
PHP
<?php
|
|
|
|
namespace App\Attribut;
|
|
|
|
use App\Domain\RequestManagement\Right\RequestedRightInterface;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*
|
|
* @see RequestedRightAttributInterface
|
|
*/
|
|
trait RequestedRightAttribut
|
|
{
|
|
/**
|
|
* @var RequestedRightInterface
|
|
*/
|
|
protected $requestedRight;
|
|
|
|
/**
|
|
* @param RequestedRightInterface $requestedRight
|
|
*/
|
|
public function setRequestedRight(RequestedRightInterface $requestedRight): void
|
|
{
|
|
$this->requestedRight = $requestedRight;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function hasRequestedRight(): bool
|
|
{
|
|
return isset($this->requestedRight);
|
|
}
|
|
|
|
/**
|
|
* @return RequestedRightInterface
|
|
*/
|
|
public function getRequestedRight(): RequestedRightInterface
|
|
{
|
|
return $this->requestedRight;
|
|
}
|
|
}
|