mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-16 02:06:23 +02:00
34 lines
839 B
PHP
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;
|
|
}
|