Class

eZ\Publish\API\Repository\Values\Content\Query\Criterion\LogicalNot

class LogicalNot extends LogicalOperator

A NOT logical criterion.

Properties

string $operator The operator used by the Criterion.
array(int|string) $value The value(s) matched by the criteria.
string $target The target used by the criteria (field, metadata...).
Value $valueData Additional value data, required by some criterions, MapLocationDistance for instance.
Criterion[] $criteria The set of criteria combined by the logical operator.

Methods

__construct(Criterion $criterion)

Creates a new NOT logic criterion.

Details

at line 27
public __construct(Criterion $criterion)

Creates a new NOT logic criterion.

Will match of the given criterion doesn't match

Parameters

Criterion $criterion

Exceptions

InvalidArgumentException if more than one criterion is given in the array parameter