class MetadataCollection (View source)

Constants

COLLECTION_ITEMS_KEY

Collection Items Key

COLLECTION_CURSOR_KEY

Collection Cursor Key

COLLECTION_HAS_MORE_ITEMS_KEY

Collection has-more-items Key

Properties

protected array $data Collection Data
protected ModelCollection $items List of Files/Folder Metadata
protected string $cursor Cursor for pagination and updates
protected boolean $hasMoreItems If more items are available

Methods

__construct(array $data)

Create a new Metadata Collection

string
getCollectionItemsKey()

Get the Collection Items Key

string
getCollectionHasMoreItemsKey()

Get the Collection has-more-items Key

string
getCollectionCursorKey()

Get the Collection Cursor Key

array
getData()

Get the Collection data

getItems()

Get the Items

string
getCursor()

Get the cursor

boolean
hasMoreItems()

More items are available

void
processItems(array $items)

Process items and cast them to their respective Models

Details

at line line 61
__construct(array $data)

Create a new Metadata Collection

Parameters

array $data Collection Data

at line line 76
string getCollectionItemsKey()

Get the Collection Items Key

Return Value

string

at line line 86
string getCollectionHasMoreItemsKey()

Get the Collection has-more-items Key

Return Value

string

at line line 96
string getCollectionCursorKey()

Get the Collection Cursor Key

Return Value

string

at line line 106
array getData()

Get the Collection data

Return Value

array

at line line 116
ModelCollection getItems()

Get the Items

Return Value

ModelCollection

at line line 126
string getCursor()

Get the cursor

Return Value

string

at line line 136
boolean hasMoreItems()

More items are available

Return Value

boolean

at line line 149
protected void processItems(array $items)

Process items and cast them to their respective Models

Parameters

array $items Unprocessed Items

Return Value

void