protected function appendTreeWalker(Query $query, $walkerClass)
    {
        $hints = $query->getHint(Query::HINT_CUSTOM_TREE_WALKERS);

        if (false === $hints) {
            $hints = [];
        }

        $hints[] = $walkerClass;
        $query->setHint(Query::HINT_CUSTOM_TREE_WALKERS, $hints);
    }
protected function appendTreeWalker(Query $query, $walkerClass)
    {
        $hints = $query->getHint(Query::HINT_CUSTOM_TREE_WALKERS);

        if (false === $hints) {
            $hints = [];
        }

        $hints[] = $walkerClass;
        $query->setHint(Query::HINT_CUSTOM_TREE_WALKERS, $hints);
    }
protected function appendTreeWalker ( Query $ query , $ walkerClass ) { $ hints = $ query -> getHint ( Query :: HINT_CUSTOM_TREE_WALKERS ) ; if ( false === $ hints ) { $ hints = [ ] ; } $ hints [ ] = $ walkerClass ; $ query -> setHint ( Query :: HINT_CUSTOM_TREE_WALKERS , $ hints ) ; }
Appends a custom tree walker to the tree walkers hint.

@param Query  $query
@param string $walkerClass
Appends a custom tree walker to the tree walkers hint .