\phpDocumentor\Transformer\WriterPathfinder

Summary

Methods
Properties
Constants
find()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
walkObjectTree()
No private properties found
N/A

Methods

find()

find(\Traversable<string,mixed>|\phpDocumentor\Descriptor\Descriptor  $object, string  $query) : \Traversable<mixed>|\phpDocumentor\Transformer\Writer\list<mixed>

Combines the query and an object to retrieve a list of nodes that are to be used as node-point in a template.

This method interprets the provided query string and walks through the given object to find the correct element. This method will silently fail if an invalid query was provided; in such a case the given object is returned.

Parameters

\Traversable|\phpDocumentor\Descriptor\Descriptor $object
string $query

Returns

\Traversable|\phpDocumentor\Transformer\Writer\list

walkObjectTree()

walkObjectTree(\Traversable<string,mixed>|\phpDocumentor\Descriptor\Descriptor  $object, string  $query) : mixed

Walks an object graph and/or array using a twig query string.

Parameters

\Traversable|\phpDocumentor\Descriptor\Descriptor $object
string $query

A path to walk separated by dots, i.e. namespace.namespaces.

Returns

mixed —