Copied!

LogicalNot

LogicalNot.php : 18
Extends LogicalOperator

A NOT logical criterion.

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

LogicalNot.php : 29

Creates a new NOT logic criterion.

public __construct(Criterion $criterion)

Will match of the given criterion doesn't match

Parameters

Name Type Default value Description
$criterion Criterion - -
Tags
Throws
InvalidArgumentException

if more than one criterion is given in the array parameter

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.