class RelationalOperator extends BaseOperator

The relational operators for evaluating numeric expressions.

Methods

__construct($operator)

BaseOperator constructor.

__toString()

Serializes to string.

jsonSerialize()

Serializes to json.

equal()

Equals.

notEqual()

Does not equal.

lessThan()

Less than.

greaterThan()

Greater than.

lessThanOrEqual()

Less than or equals.

greaterThanOrEqual()

Greater than or equals.

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 RelationalOperator equal()

Equals.

Return Value

RelationalOperator

static RelationalOperator notEqual()

Does not equal.

Return Value

RelationalOperator

static RelationalOperator lessThan()

Less than.

Return Value

RelationalOperator

static RelationalOperator greaterThan()

Greater than.

Return Value

RelationalOperator

static RelationalOperator lessThanOrEqual()

Less than or equals.

Return Value

RelationalOperator

static RelationalOperator greaterThanOrEqual()

Greater than or equals.

Return Value

RelationalOperator

Constants

EQUAL

NOT_EQUAL

LESS_THAN

GREATER_THAN

LESS_THAN_OR_EQUAL

GREATER_THAN_OR_EQUAL