class StackOperation (View source)

Represents an operation with configuration.

Properties

string $name

Name of the operation.

array $options

Configured options provided for the stack.

Methods

__construct(string $name, array $options = [])

Constructor.

array
toArray()

Return the stack operation as an array.

static StackOperation
createFromDecodedJsonResponse(array $data)

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

Details

__construct(string $name, array $options = [])

Constructor.

Parameters

string $name

Operation name

array $options

Optional options for the operation

array toArray()

Return the stack operation as an array.

Return Value

array

static StackOperation createFromDecodedJsonResponse(array $data)

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

Parameters

array $data

Decoded JSON data

Return Value

StackOperation