MatcherConfigπ
Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.
It comes with in id ( to resolve implementation from registry) and a configuration thatβs specific to a particular matcher type.
Definitionπ
class MatcherConfig implements \JsonSerializable
{
/**
* The matcher id. This is used to find the matcher implementation from registry.
*/
public string $id;
/**
* The matcher options. This is specific to the matcher implementation.
* @var mixed|null
*/
public $options;
}
Methodsπ
fromArrayπ
Builds this object from an array.
This function is meant to be used with the return value of json_decode($json, true)
.
jsonSerializeπ
Returns the data representing this object, preparing it for JSON serialization with json_encode()
.