Implemented SourceRightManager

This commit is contained in:
Kevin Frantz
2019-01-03 20:57:39 +01:00
parent 67428c2fea
commit b39e7c25d4
5 changed files with 213 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?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;
}