class StackCollection implements Countable, Iterator (View source)

Holds a list of stacks.

Methods

__construct(array $stacks, string $cursor = null)

Constructor.

int
count()

Return the number of stacks in this collection.

Stack[]
getStacks()

Return the stacks.

string|null
getCursor()

No description

static StackCollection
createFromJsonResponse(string $data)

Create a stack from the JSON data returned by the rokka.io API.

current()

No description

void
next()

No description

int
key()

No description

bool
valid()

No description

void
rewind()

No description

Details

__construct(array $stacks, string $cursor = null)

Constructor.

Parameters

array $stacks

Array of stacks

string $cursor

int count()

Return the number of stacks in this collection.

Return Value

int

Stack[] getStacks()

Return the stacks.

Return Value

Stack[]

string|null getCursor()

No description

Return Value

string|null

static StackCollection createFromJsonResponse(string $data)

Create a stack from the JSON data returned by the rokka.io API.

Parameters

string $data

JSON data

Return Value

StackCollection

Stack current()

No description

Return Value

Stack

void next()

No description

Return Value

void

int key()

No description

Return Value

int

bool valid()

No description

Return Value

bool

void rewind()

No description

Return Value

void