StackCollection
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.
string|null
getCursor()
No description
static StackCollection
createFromJsonResponse(string $data)
Create a stack from the JSON data returned by the rokka.io API.
void
next()
No description
int
key()
No description
bool
valid()
No description
void
rewind()
No description
Details
__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.
Stack
current()
No description
void
next()
No description
int
key()
No description
bool
valid()
No description
void
rewind()
No description