Since: 1.1.0

class StackExpression (View source)

Properties

string $expression
array $overrides

Methods

__construct(string $expression, array $optionOverrides = [])

No description

static StackExpression
createFromDecodedJsonResponse(array $data)

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

string
getExpression()

No description

setExpression(string $expression)

No description

array<string,bool|float|int|string>
getOptionsOverrides()

No description

setOptionsOverrides(array $overrides)

No description

addOptionOverride(string $key, bool|float|int|string $value)

Adds a single option override to the options overrides.

(bool|float|int|string)[]
getVariablesOverrides()

No description

setVariablesOverrides(array $overrides)

No description

addVariableOverride(string $key, bool|float|int|string $value)

Adds a single variable override to the variables overrides.

Details

__construct(string $expression, array $optionOverrides = [])

No description

Parameters

string $expression
array $optionOverrides

static StackExpression createFromDecodedJsonResponse(array $data)

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

Parameters

array $data

Decoded JSON data

Return Value

StackExpression

string getExpression()

No description

Return Value

string

StackExpression setExpression(string $expression)

No description

Parameters

string $expression

Return Value

StackExpression

array<string,bool|float|int|string> getOptionsOverrides()

No description

Return Value

array<string,bool|float|int|string>

StackExpression setOptionsOverrides(array $overrides)

No description

Parameters

array $overrides

Return Value

StackExpression

StackExpression addOptionOverride(string $key, bool|float|int|string $value)

Adds a single option override to the options overrides.

Parameters

string $key
bool|float|int|string $value

Return Value

StackExpression

(bool|float|int|string)[] getVariablesOverrides()

No description

Return Value

(bool|float|int|string)[]

StackExpression setVariablesOverrides(array $overrides)

No description

Parameters

array $overrides

Return Value

StackExpression

StackExpression addVariableOverride(string $key, bool|float|int|string $value)

Adds a single variable override to the variables overrides.

Parameters

string $key
bool|float|int|string $value

Return Value

StackExpression