Devise\Users\Permissions\RuleManager::getClosure PHP Method

getClosure() public method

Get all closures
public getClosure ( string $method ) : Array
$method string
return Array
    public function getClosure($method)
    {
        if (isset($this->RuleList->closures[$method])) {
            return $this->RuleList->closures[$method];
        } else {
            throw new \Devise\Support\DeviseException('Unknown Function "' . $method . '" in RuleManager');
        }
    }