mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Added grant to all function to RightChecker and LawPermissionChecker
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user