class EqualityFilter implements FilterInterface

EqualityFilter class.

The EqualityFilter can be used to compare a resource's field or metadata against a specific value.

EqualityFilters are one of the very basic filters and are typically used ensure the type of a document or to match entries of a content type:

{
  "equals": [{"doc": "sys.environment.sys.id"}, "staging"]
}

Methods

__construct(string $doc, string $value)

EqualityFilter constructor.

getDoc()

No description

setDoc(string $doc)

No description

getValue()

No description

setValue(string $value)

No description

jsonSerialize()

{@inheritdoc}

Details

at line 44
__construct(string $doc, string $value)

EqualityFilter constructor.

Parameters

string $doc
string $value

at line 50
getDoc()

at line 58
EqualityFilter setDoc(string $doc)

Parameters

string $doc

Return Value

EqualityFilter

at line 65
getValue()

at line 73
EqualityFilter setValue(string $value)

Parameters

string $value

Return Value

EqualityFilter

at line 83
jsonSerialize()

{@inheritdoc}