mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 14:27:28 +01:00
43 lines
832 B
PHP
43 lines
832 B
PHP
<?php
|
|
|
|
namespace Infinito\Attribut;
|
|
|
|
use Infinito\Domain\Request\Entity\RequestedEntityInterface;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*
|
|
* @see RequestedEntityAttributInterface
|
|
*/
|
|
trait RequestedEntityAttribut
|
|
{
|
|
/**
|
|
* @var RequestedEntityInterface
|
|
*/
|
|
private $requestedEntity;
|
|
|
|
/**
|
|
* @return RequestedEntityInterface
|
|
*/
|
|
public function getRequestedEntity(): RequestedEntityInterface
|
|
{
|
|
return $this->requestedEntity;
|
|
}
|
|
|
|
/**
|
|
* @param RequestedEntityInterface $requestedEntity
|
|
*/
|
|
public function setRequestedEntity(RequestedEntityInterface $requestedEntity): void
|
|
{
|
|
$this->requestedEntity = $requestedEntity;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function hasRequestedEntity(): bool
|
|
{
|
|
return isset($this->requestedEntity);
|
|
}
|
|
}
|