\phpDocumentor\Plugin\Core\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(object  $object, string  $query) : \Traversable|array<mixed,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

object $object
string $query

Returns

\Traversable|array<mixed,mixed>

walkObjectTree()

walkObjectTree(\Traversable|mixed  $objectOrArray, string  $query) : mixed

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

Parameters

\Traversable|mixed $objectOrArray
string $query

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

Returns

mixed