infinito/application/src/Domain/SourceManagement/SourceRightManagerInterface.php
2019-01-03 20:57:39 +01:00

27 lines
592 B
PHP

<?php
namespace App\Domain\SourceManagement;
use App\Entity\Meta\RightInterface;
use App\Exception\AllreadySetException;
use App\Exception\AllreadyDefinedException;
use App\Exception\NotSetException;
interface SourceRightManagerInterface
{
/**
* @param RightInterface $right
*
* @throws AllreadySetException
* @throws AllreadyDefinedException
*/
public function addRight(RightInterface $right): void;
/**
* @param RightInterface $right
*
* @throws NotSetException
*/
public function removeRight(RightInterface $right): void;
}