class StackOperation (View source)

Represents an operation with configuration.

Properties

string $name

Name of the operation.

array $options

Configured operation options provided for the stack.

array $expressions

Configured operation expressions provided for the stack.

Methods

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

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 = [], array $expressions = [])

Constructor.

Parameters

string $name

Operation name

array $options

Optional options for the operation

array $expressions

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