mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized RequestManagement and tests
This commit is contained in:
@@ -6,6 +6,8 @@ use App\Domain\RequestManagement\Entity\RequestedEntityInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*
|
||||
* @see RequestedEntityAttributInterface
|
||||
*/
|
||||
trait RequestedEntityAttribut
|
||||
{
|
||||
@@ -29,4 +31,12 @@ trait RequestedEntityAttribut
|
||||
{
|
||||
$this->requestedEntity = $requestedEntity;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function hasRequestedEntity(): bool
|
||||
{
|
||||
return isset($this->requestedEntity);
|
||||
}
|
||||
}
|
||||
|
@@ -9,6 +9,11 @@ use App\Domain\RequestManagement\Entity\RequestedEntityInterface;
|
||||
*/
|
||||
interface RequestedEntityAttributInterface
|
||||
{
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function hasRequestedEntity(): bool;
|
||||
|
||||
/**
|
||||
* @return RequestedEntityInterface
|
||||
*/
|
||||
|
@@ -24,6 +24,14 @@ trait RequestedRightAttribut
|
||||
$this->requestedRight = $requestedRight;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function hasRequestedRight(): bool
|
||||
{
|
||||
return isset($this->requestedRight);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RequestedRightInterface
|
||||
*/
|
||||
|
@@ -9,6 +9,11 @@ use App\Domain\RequestManagement\Right\RequestedRightInterface;
|
||||
*/
|
||||
interface RequestedRightAttributInterface
|
||||
{
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function hasRequestedRight(): bool;
|
||||
|
||||
/**
|
||||
* @param RequestedRightInterface $requestedRight
|
||||
*/
|
||||
|
Reference in New Issue
Block a user