Condition extends Condition
Table of Contents
Methods
- __construct() : mixed
- check() : bool
- checkValue() : bool
- getField() : string
- getObject() : string
- getOperator() : string
- getOperatorList() : array<string|int, mixed>
- getValue() : mixed
- setField() : Condition
- setObject() : Condition
- 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
check()
public
check(mixed $needle, string $fieldType, BaseTarget $target, FieldType $fieldTypeObject) : bool
Parameters
- $needle : mixed
-
The field value to check.
- $fieldType : string
-
Type of the field.
- $target : BaseTarget
-
Automation target.
- $fieldTypeObject : FieldType
Return values
boolcheckValue()
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
boolgetField()
public
getField() : string
Return values
stringgetObject()
public
getObject() : string
Return values
stringgetOperator()
public
getOperator() : string
Return values
stringgetOperatorList()
public
static getOperatorList() : array<string|int, mixed>
Return values
array<string|int, mixed>getValue()
public
getValue() : mixed
setField()
public
setField(string $field) : Condition
Parameters
- $field : string
-
The field name.
Return values
ConditionsetObject()
public
setObject(string $objectName) : Condition
Parameters
- $objectName : string
-
The object name.
Return values
ConditionsetOperator()
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.