Copied!

LogicalOr

LogicalOr.php : 18
Extends LogicalOperator

This criterion implements a logical OR criterion and will only match if AT LEAST ONE of the given criteria match.

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.