Added RequestedRightAttribut

This commit is contained in:
Kevin Frantz
2019-01-26 16:42:13 +01:00
parent 36198e8196
commit 05cd278dab
3 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?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 RequestedRightInterface
*/
public function getRequestedRight(): RequestedRightInterface
{
return $this->requestedRight;
}
}

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Attribut;
use App\Domain\RequestManagement\Right\RequestedRightInterface;
/**
* @author kevinfrantz
*/
interface RequestedRightAttributInterface
{
/**
* @param RequestedRightInterface $requestedRight
*/
public function setRequestedRight(RequestedRightInterface $requestedRight): void;
/**
* @return RequestedRightInterface
*/
public function getRequestedRight(): RequestedRightInterface;
}