2018-10-27 14:56:26 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Entity\Method;
|
|
|
|
|
2018-10-28 15:25:32 +01:00
|
|
|
use App\Entity\Meta\RelationInterface;
|
2018-10-27 14:56:26 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
|
|
|
interface RelationGrantedInterface
|
|
|
|
{
|
2018-10-28 14:29:19 +01:00
|
|
|
/**
|
|
|
|
* @deprecated Methods shouldn't be used on the entity level
|
2018-10-29 19:01:00 +01:00
|
|
|
*
|
2018-10-28 14:29:19 +01:00
|
|
|
* @param RelationInterface $relation
|
2018-10-29 19:01:00 +01:00
|
|
|
* @param string $layer
|
|
|
|
* @param string $right
|
|
|
|
*
|
2018-10-28 14:29:19 +01:00
|
|
|
* @return bool
|
|
|
|
*/
|
2018-10-27 14:56:26 +02:00
|
|
|
public function isGranted(RelationInterface $relation, string $layer, string $right): bool;
|
|
|
|
}
|