src/AuthorizationService.php
protected function getScopeHandler($policy, $action)
    {
        $method = 'scope' . ucfirst($action);

        if (!method_exists($policy, $method)) {
            throw new MissingMethodException([$method, $action, get_class($policy)]);
        }

        return [$policy, $method];
    }
protected function getScopeHandler($policy, $action)
    {
        $method = 'scope' . ucfirst($action);

        if (!method_exists($policy, $method)) {
            throw new MissingMethodException([$method, $action, get_class($policy)]);
        }

        return [$policy, $method];
    }
protected function getScopeHandler ( $ policy , $ action ) { $ method = 'scope' . ucfirst ( $ action ) ; if ( ! method_exists ( $ policy , $ method ) ) { throw new MissingMethodException ( [ $ method , $ action , get_class ( $ policy ) ] ) ; } return [ $ policy , $ method ] ; }
Returns a policy scope action handler.

@param mixed $policy Policy object.
@param string $action Action name.
@return callable
@throws \Authorization\Policy\Exception\MissingMethodException
Returns a policy scope action handler .