PHP Класс JmesPath\TreeInterpreter

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( callable $fnDispatcher = null )
visit ( array $node, mixed $data ) : mixed Visits each node in a JMESPath AST and returns the evaluated result.

Приватные методы

Метод Описание
dispatch ( array $node, $value ) : mixed Recursively traverses an AST using depth-first, pre-order traversal.
relativeCmp ( $left, $right, $cmp ) : boolean

Описание методов

__construct() публичный Метод

public __construct ( callable $fnDispatcher = null )
$fnDispatcher callable Function dispatching function that accepts a function name argument and an array of function arguments and returns the result.

visit() публичный Метод

Visits each node in a JMESPath AST and returns the evaluated result.
public visit ( array $node, mixed $data ) : mixed
$node array JMESPath AST node
$data mixed Data to evaluate
Результат mixed