Copied!

LogicalOperator

LogicalOperator.php : 19
Extends Criterion

Note that the class should ideally have been in a Logical namespace, but it would have then be named 'And', and 'And' is a PHP reserved word.

Properties

public $criteria

LogicalOperator.php : 26

The set of criteria combined by the logical operator.

public array<string|int, Criterion$criteria = []

public $operator

Criterion.php : 23

The operator used by the Criterion.

public string $operator

public $target

Criterion.php : 37

The target used by the criteria (field, metadata...).

public string $target

public $value

Criterion.php : 30

The value(s) matched by the criteria.

public array<string|int, scalar>|scalar $value

public $valueData

Criterion.php : 44

Additional value data, required by some criterions, MapLocationDistance for instance.

public Value $valueData

Methods

public__construct()

LogicalOperator.php : 35

Creates a Logic operation with the given criteria.

public __construct(array<string|int, Criterion$criteria)

Parameters

Name Type Default value Description
$criteria array<string|int, Criterion> - -
Tags
Throws
InvalidCriterionArgumentException

publicgetSpecifications()

LogicalOperator.php : 52

Criterion description function.

public getSpecifications() : array<string|int, mixed>

Return values

array<string|int, mixed>

Tags
Deprecated

in LogicalOperators since 7.2. It will be removed in 8.0 when Logical Operator no longer extends Criterion.