Refactored parameter name

This commit is contained in:
kevinveenbirkenbach committed 2020-04-02 22:10:34 +02:00
1 parent 5887b1c869
commit 365104ac9f
2 files changed
+3 -6

No files matched your search

@@ -74,10 +74,10 @@ final class SecureSourceChecker implements SecureSourceCheckerInterface
*
* @see \Infinito\Domain\Secure\SecureSourceCheckerInterface::hasPermission()
*/
public function hasPermission(RightInterface $requestedRight): bool
public function hasPermission(RightInterface $right): bool
{
$law = new LawPermissionChecker($this->source->getLaw());
return $law->hasPermission($requestedRight) && $this->itterateOverSourceAttributs($requestedRight);
return $law->hasPermission($right) && $this->itterateOverSourceAttributs($right);
}
}
@@ -9,8 +9,5 @@ use Infinito\Entity\Meta\RightInterface;
*/
interface SecureSourceCheckerInterface
{
/**
* @param RightInterface $right
*/
public function hasPermission(RightInterface $requestedRight): bool;
public function hasPermission(RightInterface $right): bool;
}