class Stack (View source)

Represents a collection of stack operations for an organization.

Properties

string $organization
string $name
DateTime $created
StackOperation[] $stackOperations
array $stackOptions

Methods

__construct(string $organization, string $name, array $stackOperations, array $stackOptions, DateTime $created)

Constructor.

static Stack
createFromJsonResponse(string|array $data, bool $isArray = false)

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

string
getOrganization()

Get nanme of organization for url.

string
getName()

Get name of stack for url.

getCreated()

Get date of creation for this stack.

getStackOperations()

Get collection of operations.

array
getStackOptions()

Get the collection of Stack's options.

Details

__construct(string $organization, string $name, array $stackOperations, array $stackOptions, DateTime $created)

Constructor.

Parameters

string $organization

Organization name

string $name

Stack name

array $stackOperations

Collection of stack operations

array $stackOptions

Collection of stack options

DateTime $created

Created at

static Stack createFromJsonResponse(string|array $data, bool $isArray = false)

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

Parameters

string|array $data

JSON data

bool $isArray

If the data provided is already an array

Return Value

Stack

string getOrganization()

Get nanme of organization for url.

Return Value

string

string getName()

Get name of stack for url.

Return Value

string

DateTime getCreated()

Get date of creation for this stack.

Return Value

DateTime

StackOperation[] getStackOperations()

Get collection of operations.

Return Value

StackOperation[]

array getStackOptions()

Get the collection of Stack's options.

Return Value

array