infinito/application/symfony/src/Domain/SecureManagement/SecureSourceCheckerInterface.php
2019-01-05 23:52:37 +01:00

22 lines
389 B
PHP

<?php
namespace App\Domain\SecureManagement;
use App\Entity\Meta\RightInterface;
use App\Exception\SourceAccessDenied;
/**
* @author kevinfrantz
*/
interface SecureSourceCheckerInterface
{
/**
* @throws SourceAccessDenied
*
* @param RightInterface $right
*
* @return bool
*/
public function hasPermission(RightInterface $requestedRight): bool;
}