Added grant to all function to RightChecker and LawPermissionChecker

This commit is contained in:
Kevin Frantz
2019-02-16 16:16:48 +01:00
parent 6f6b720470
commit 256e37ccd5
12 changed files with 130 additions and 11 deletions

View File

@@ -6,6 +6,8 @@ use App\Entity\Source\SourceInterface;
/**
* @author kevinfrantz
*
* @see RecieverAttributInterface
*/
trait RecieverAttribut
{
@@ -14,13 +16,27 @@ trait RecieverAttribut
*/
protected $reciever;
public function setReciever(SourceInterface $reciever): void
/**
* @param SourceInterface $reciever
*/
public function setReciever(?SourceInterface $reciever): void
{
$this->reciever = $reciever;
}
/**
* @return SourceInterface
*/
public function getReciever(): SourceInterface
{
return $this->reciever;
}
/**
* @return bool
*/
public function hasReciever(): bool
{
return isset($this->reciever);
}
}

View File

@@ -9,7 +9,18 @@ use App\Entity\Source\SourceInterface;
*/
interface RecieverAttributInterface
{
public function setReciever(SourceInterface $reciever): void;
/**
* @param SourceInterface|null $reciever If null, then all recievers MUST be addressed. Otherwise just a special reciever
*/
public function setReciever(?SourceInterface $reciever): void;
/**
* @return SourceInterface
*/
public function getReciever(): SourceInterface;
/**
* @return bool True if it has a special reciever
*/
public function hasReciever(): bool;
}