Since: 1.1.0

class StackExpression (View source)

Properties

string $expression
array $overrides

Methods

__construct($expression, $optionOverrides = [])

No description

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

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

string
getExpression()

No description

setExpression(string $expression)

No description

array
getOptionsOverrides()

No description

setOptionsOverrides(array $overrides)

No description

addOptionOverride(string $key, mixed $value)

Adds a single option override to the options overrides.

Details

__construct($expression, $optionOverrides = [])

No description

Parameters

$expression
$optionOverrides

static StackExpression 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

StackExpression

string getExpression()

No description

Return Value

string

StackExpression setExpression(string $expression)

No description

Parameters

string $expression

Return Value

StackExpression

array getOptionsOverrides()

No description

Return Value

array

StackExpression setOptionsOverrides(array $overrides)

No description

Parameters

array $overrides

Return Value

StackExpression

StackExpression addOptionOverride(string $key, mixed $value)

Adds a single option override to the options overrides.

Parameters

string $key
mixed $value

Return Value

StackExpression