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
createFromJsonResponse(string|array $data, bool $isArray = false)

Create a stack operation from the 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 createFromJsonResponse(string|array $data, bool $isArray = false)

Create a stack operation 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

StackOperation