EqualityFilter
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.
at line 50
getDoc()
at line 58
EqualityFilter
setDoc(string $doc)
at line 65
getValue()
at line 73
EqualityFilter
setValue(string $value)
at line 83
jsonSerialize()
{@inheritdoc}