infinito/application/symfony/src/Domain/Request/Entity/RequestedEntityInterface.php
2019-05-30 16:52:02 +02:00

34 lines
839 B
PHP

<?php
namespace Infinito\Domain\Request\Entity;
use Infinito\Entity\EntityInterface;
use Infinito\Attribut\SlugAttributInterface;
use Infinito\Attribut\RequestedRightAttributInterface;
use Infinito\Attribut\ClassAttributInterface;
/**
* A requested entity containes the stumb attributes to load an entity.
*
* @author kevinfrantz
*/
interface RequestedEntityInterface extends EntityInterface, SlugAttributInterface, RequestedRightAttributInterface, ClassAttributInterface
{
/**
* Sets the slug or the id.
*
* @param string|int $identity
*/
public function setIdentity($identity): void;
/**
* @return bool True if an identity attribut is defined
*/
public function hasIdentity(): bool;
/**
* @return EntityInterface
*/
public function getEntity(): EntityInterface;
}