mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-16 10:16:22 +02:00
27 lines
558 B
PHP
27 lines
558 B
PHP
<?php
|
|
|
|
namespace App\Domain\LawManagement;
|
|
|
|
use App\Entity\Source\SourceInterface;
|
|
|
|
/**
|
|
* Allows to check if a source has rights on a source.
|
|
*
|
|
* @author kevinfrantz
|
|
*/
|
|
interface LawPermissionCheckerServiceInterface
|
|
{
|
|
public function setRequestedSource(SourceInterface $requestedSource): void;
|
|
|
|
public function setClientSource(SourceInterface $clientSource): void;
|
|
|
|
public function checkPermission(): bool;
|
|
|
|
/**
|
|
* Sets the permission type.
|
|
*
|
|
* @param string $type
|
|
*/
|
|
public function setType(string $type): void;
|
|
}
|