\Osiset\BasicShopifyAPIResponseAccess

Response data object for accessing.

Summary

Methods
Properties
Constants
__construct()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
__isset()
__get()
__set()
hasErrors()
getErrors()
$container
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$container

$container : mixed

The response data.

Type

mixed

Methods

__construct()

__construct(mixed  $data) : self

Setup resource.

Parameters

mixed $data

The data to use for source.

Returns

self

offsetExists()

offsetExists(mixed  $offset) : boolean

Check if offset exists

Parameters

mixed $offset

Returns

boolean

offsetGet()

offsetGet(mixed  $offset) : mixed

Get the value by offset.

Parameters

mixed $offset

Returns

mixed

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : void

Set a value by offset.

Parameters

mixed $offset
mixed $value

offsetUnset()

offsetUnset(mixed  $offset) : void

Remove by offset.

Parameters

mixed $offset

__isset()

__isset(string  $key) : boolean

Check if key exists in data.

Parameters

string $key

Returns

boolean

__get()

__get(string  $key) : mixed

Allows for accessing the underlying array as an object.

$response->shop->name will forward to $response['shop']['name']

Parameters

string $key

Returns

mixed

__set()

__set(string  $key, mixed  $value) : void

Set to array.

Parameters

string $key
mixed $value

hasErrors()

hasErrors() : boolean

Check if errors are in response.

Returns

boolean

getErrors()

getErrors() : mixed

Get the errors.

Returns

mixed