Condition
Table of Contents
Methods
- __construct() : mixed
- checkValue() : bool
- getOperator() : string
- getOperatorList() : array<string|int, mixed>
- getValue() : mixed
- setOperator() : Condition
- setValue() : Condition
- toArray() : array<string|int, mixed>
Methods
__construct()
public
__construct([array<string|int, mixed> $params = null ]) : mixed
Parameters
- $params : array<string|int, mixed> = null
checkValue()
public
checkValue(mixed $valueToCheck, FieldType $fieldType, array<string|int, mixed> $documentId) : bool
Parameters
- $valueToCheck : mixed
-
The field value to check.
- $fieldType : FieldType
- $documentId : array<string|int, mixed>
-
Document Id.
Return values
boolgetOperator()
public
getOperator() : string
Return values
stringgetOperatorList()
public
static getOperatorList() : array<string|int, mixed>
Return values
array<string|int, mixed>getValue()
public
getValue() : mixed
setOperator()
public
setOperator(string $operator) : Condition
Parameters
- $operator : string
-
Operator like
=
,<
,>
etc.
Return values
ConditionsetValue()
public
setValue(mixed $value) : Condition
Parameters
- $value : mixed
-
Target condition value.
Return values
ConditiontoArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array presentation of condition.