class LogicalOperator extends BaseOperator

Defines the logical operators for chaining conditional transformations.

Learn more: Multiple transformation conditions

Methods

__construct($operator)

BaseOperator constructor.

__toString()

Serializes to string.

jsonSerialize()

Serializes to json.

andOperator()

And.

orOperator()

Or.

Details

__construct($operator)

BaseOperator constructor.

Parameters

Name Type Description
$operator

string __toString()

Serializes to string.

Return Value

string

mixed jsonSerialize()

Serializes to json.

Return Value

mixed

static LogicalOperator andOperator()

And.

Return Value

LogicalOperator

static LogicalOperator orOperator()

Or.

Return Value

LogicalOperator

Constants

AND_OPERATOR

OR_OPERATOR