src/Core/Model.php
protected static function apiCall($provider, $method, $uri, $params = [])
    {
        $methodName = $method . 'ApiCall';
        if (method_exists($provider, $methodName)) {
            return $provider->{$methodName}($uri, $params);
        }
        throw new InvalidRequestException();
    }
protected static function apiCall($provider, $method, $uri, $params = [])
    {
        $methodName = $method . 'ApiCall';
        if (method_exists($provider, $methodName)) {
            return $provider->{$methodName}($uri, $params);
        }
        throw new InvalidRequestException();
    }
protected static function apiCall ( $ provider , $ method , $ uri , $ params = [ ] ) { $ methodName = $ method . 'ApiCall' ; if ( method_exists ( $ provider , $ methodName ) ) { return $ provider -> { $ methodName } ( $ uri , $ params ) ; } throw new InvalidRequestException ( ) ; }
Sends request by given type, uri and options
@param PDFfiller $provider
@param $method
@param $uri
@param array $params
@return mixed
@throws InvalidRequestException
Sends request by given type uri and options