Collections
in package
implements
ArrayAccess
Class Collections
Tags
Table of Contents
Interfaces
- ArrayAccess
Constants
- RESOURCE_PATH = '/collections'
Properties
- $apiCall : ApiCall
- $collections : array<string|int, mixed>
Methods
- __construct() : mixed
- Collections constructor.
- __get() : mixed
- create() : array<string|int, mixed>
- offsetExists() : bool
- offsetGet() : Collection
- offsetSet() : void
- offsetUnset() : void
- retrieve() : array<string|int, mixed>
Constants
RESOURCE_PATH
public
mixed
RESOURCE_PATH
= '/collections'
Properties
$apiCall
private
ApiCall
$apiCall
$collections
private
array<string|int, mixed>
$collections
= []
Methods
__construct()
Collections constructor.
public
__construct(ApiCall $apiCall) : mixed
Parameters
- $apiCall : ApiCall
__get()
public
__get(mixed $collectionName) : mixed
Parameters
- $collectionName : mixed
create()
public
create(array<string|int, mixed> $schema) : array<string|int, mixed>
Parameters
- $schema : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>offsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Tags
Return values
booloffsetGet()
public
offsetGet(mixed $offset) : Collection
Parameters
- $offset : mixed
Tags
Return values
CollectionoffsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
Tags
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
Tags
retrieve()
public
retrieve() : array<string|int, mixed>