mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Added RequestedEntityAttribut
This commit is contained in:
32
application/symfony/src/Attribut/RequestedEntityAttribut.php
Normal file
32
application/symfony/src/Attribut/RequestedEntityAttribut.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Domain\RequestManagement\Entity\RequestedEntityInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Attribut;
|
||||
|
||||
use App\Domain\RequestManagement\Entity\RequestedEntityInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface RequestedEntityAttributInterface
|
||||
{
|
||||
/**
|
||||
* @return RequestedEntityInterface
|
||||
*/
|
||||
public function getRequestedEntity(): RequestedEntityInterface;
|
||||
|
||||
/**
|
||||
* @param RequestedEntityInterface $requestedEntity
|
||||
*/
|
||||
public function setRequestedEntity(RequestedEntityInterface $requestedEntity): void;
|
||||
}
|
Reference in New Issue
Block a user