|
| __construct ($dir=null, Parser $parser=null) |
|
| __invoke ($expression, $data) |
| Returns data from the provided input that matches a given JMESPath expression.
|
|
◆ __construct()
JmesPath\CompilerRuntime::__construct |
( |
| $dir = null, |
|
|
Parser | $parser = null ) |
- Parameters
-
string | null | $dir | Directory used to store compiled PHP files. |
Parser | null | $parser | JMESPath parser to utilize |
- Exceptions
-
RuntimeException | if the cache directory cannot be created |
◆ __invoke()
JmesPath\CompilerRuntime::__invoke |
( |
| $expression, |
|
|
| $data ) |
Returns data from the provided input that matches a given JMESPath expression.
- Parameters
-
string | $expression | JMESPath expression to evaluate |
mixed | $data | Data to search. This data should be data that is similar to data returned from json_decode using associative arrays rather than objects. |
- Return values
-
mixed | Returns the matching data or null |
- Exceptions
-
The documentation for this class was generated from the following file:
- lib/jmespath/src/CompilerRuntime.php