class RegexpFilter implements FilterInterface

RegexpFilter class.

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

{
  "regexp": [{"doc": "sys.environment.sys.id"}, {"pattern": "^ci-.+$"}]
}

Methods

__construct(string $doc, string $pattern)

RegexpFilter constructor.

getDoc()

No description

setDoc(string $doc)

No description

getPattern()

No description

setPattern(string $pattern)

No description

jsonSerialize()

{@inheritdoc}

Details

at line 41
__construct(string $doc, string $pattern)

RegexpFilter constructor.

Parameters

string $doc
string $pattern

at line 47
getDoc()

at line 55
RegexpFilter setDoc(string $doc)

Parameters

string $doc

Return Value

RegexpFilter

at line 62
getPattern()

at line 70
RegexpFilter setPattern(string $pattern)

Parameters

string $pattern

Return Value

RegexpFilter

at line 80
jsonSerialize()

{@inheritdoc}