StackCollection
class StackCollection implements Countable (View source)
Holds a list of stacks.
Methods
__construct(array $stacks)
Constructor.
int
count()
Return the number of stacks in this collection.
static StackCollection
createFromJsonResponse(string|array $data, bool $isArray = false)
Create a stack from the JSON data returned by the rokka.io API.
Details
__construct(array $stacks)
Constructor.
int
count()
Return the number of stacks in this collection.
Stack[]
getStacks()
Return the stacks.
static StackCollection
createFromJsonResponse(string|array $data, bool $isArray = false)
Create a stack from the JSON data returned by the rokka.io API.