Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
JmesPath\TreeInterpreter Class Reference

Public Member Functions

 __construct (callable $fnDispatcher=null)
 
 visit (array $node, $data)
 Visits each node in a JMESPath AST and returns the evaluated result.
 

Constructor & Destructor Documentation

◆ __construct()

JmesPath\TreeInterpreter::__construct ( callable $fnDispatcher = null)
Parameters
callable | null$fnDispatcherFunction dispatching function that accepts a function name argument and an array of function arguments and returns the result.

Member Function Documentation

◆ visit()

JmesPath\TreeInterpreter::visit ( array $node,
$data )

Visits each node in a JMESPath AST and returns the evaluated result.

Parameters
array$nodeJMESPath AST node
mixed$dataData to evaluate
Return values
mixed

The documentation for this class was generated from the following file: