Refactored parameter name

This commit is contained in:
Kevin Veen-Birkenbach 2020-04-02 22:10:34 +02:00
parent 5887b1c869
commit 365104ac9f
2 changed files with 3 additions and 6 deletions

View File

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

View File

@ -9,8 +9,5 @@ use Infinito\Entity\Meta\RightInterface;
*/ */
interface SecureSourceCheckerInterface interface SecureSourceCheckerInterface
{ {
/** public function hasPermission(RightInterface $right): bool;
* @param RightInterface $right
*/
public function hasPermission(RightInterface $requestedRight): bool;
} }