infinito/application/symfony/src/Domain/Right/RightCheckerInterface.php
2019-05-30 16:55:08 +02:00

23 lines
476 B
PHP

<?php
namespace Infinito\Domain\Right;
use Infinito\Entity\Source\SourceInterface;
/**
* Checks if the crud, layer and source combination is granted by a right.
*
* @author kevinfrantz
*/
interface RightCheckerInterface
{
/**
* @param string $layer
* @param string $type
* @param SourceInterface $source
*
* @return bool
*/
public function isGranted(string $layer, string $type, SourceInterface $source): bool;
}