class NotFilter implements FilterInterface

NotFilter class.

The NotFilter inverts the result of its value. The value of the NotFilter must be another constraint.

A typical use case for the NotFilter is the inversion of whitelists to blacklists.

{
  "not": {
    "equals": [{"doc": "sys.contentType.sys.id"}, "content-type-id"]
  }
}

Methods

__construct(FilterInterface $child)

NotConstraint constructor.

getChild()

No description

setChild(FilterInterface $child)

No description

jsonSerialize()

{@inheritdoc}

Details

at line 40
__construct(FilterInterface $child)

NotConstraint constructor.

Parameters

FilterInterface $child

at line 45
getChild()

at line 53
NotFilter setChild(FilterInterface $child)

Parameters

FilterInterface $child

Return Value

NotFilter

at line 63
jsonSerialize()

{@inheritdoc}