infinito/application/src/Entity/Method/RelationGrantedInterface.php

21 lines
437 B
PHP
Raw Normal View History

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