/** * Permission constructor. */ public function __construct($className) { parent::__construct($className); }
/** * @param GrantableInterface $grantable * @param PermissionInterface $permission * * @return GrantableRepository */ public function deny(GrantableInterface $grantable, PermissionInterface $permission) { $this->permissions = null; return $this->repository->removePermission($grantable, $permission); }