/** * Create a path from the root node to the present node * * @access public * @return string the path */ static function buildPath(CompositeInterface $node) { $paths = array(); $paths[] = $node->getId(); # build path from current node to root do { $node = $node->getParent(); if ($node instanceof CompositeInterface) { $paths[] = $node->getId(); } } while ($node instanceof CompositeInterface); # reverse path to get from schema to current node. array_reverse($paths); return $paths; }
public function visitDBALGatherer(CompositeInterface $node) { if ($node instanceof DBALTypeInterface) { $this->valueConverter->set($node->getId(), $node->getDBALType()); } }