Table of Contents
Constants
-
MATCH_QUERY_OPERATORS
= '
@(\.(?<key>[^\s<>!=]+)|\[["\']?(?<keySquare>.*?)["\']?\])
(\s*(?<operator>==|=~|=|<>|!==|!=|>=|<=|>|<|in|!in|nin)\s*(?<comparisonValue>.+))?
'
Properties
-
$magicIsAllowed
: bool
-
$token
: JSONPathToken
Methods
-
__construct()
: mixed
-
filter()
: array<string|int, mixed>
MATCH_QUERY_OPERATORS
protected
mixed
MATCH_QUERY_OPERATORS
= '
@(\.(?<key>[^\s<>!=]+)|\[["\']?(?<keySquare>.*?)["\']?\])
(\s*(?<operator>==|=~|=|<>|!==|!=|>=|<=|>|<|in|!in|nin)\s*(?<comparisonValue>.+))?
'
$magicIsAllowed
protected
bool
$magicIsAllowed
= false
$token
protected
JSONPathToken
$token
__construct()
public
__construct(JSONPathToken $token[, int|bool $options = false ]) : mixed
Parameters
-
$token
: JSONPathToken
-
-
$options
: int|bool
= false
-
filter()
public
filter(mixed $collection) : array<string|int, mixed>
Parameters
-
$collection
: mixed
-
-
inheritDoc
-
Return values
array<string|int, mixed>