\Osiset\BasicShopifyAPI\MiddlewareUpdateRequestTime

Update request times for calls.

Summary

Methods
Properties
Constants
__construct()
__invoke()
No public properties found
No constants found
isGraphRequest()
isRestRequest()
$api
N/A
No private methods found
No private properties found
N/A

Properties

$api

$api : \Osiset\BasicShopifyAPI\BasicShopifyAPI

The API instance.

Type

\Osiset\BasicShopifyAPI\BasicShopifyAPI

Methods

__construct()

__construct(\Osiset\BasicShopifyAPI\BasicShopifyAPI  $api) : self

Setup.

Parameters

\Osiset\BasicShopifyAPI\BasicShopifyAPI $api

The API instance.

Returns

self

__invoke()

__invoke(callable  $handler) : callable

Run.

Parameters

callable $handler

Returns

callable

isGraphRequest()

isGraphRequest(string  $uri) : boolean

Determines if the request is to Graph API.

Parameters

string $uri

The request URI.

Returns

boolean

isRestRequest()

isRestRequest(string  $uri) : boolean

Determines if the request is to REST API.

Parameters

string $uri

The request URI.

Returns

boolean