public function buildNamespaceObjectFromNode(PHPParser_Node_Stmt_Namespace $node) { $nameSpaceObject = new Tx_PhpParser_Domain_Model_Namespace(Tx_PhpParser_Parser_Utility_NodeConverter::getValueFromNode($node->getName())); $nameSpaceObject->setNode($node); $nameSpaceObject->initDocComment(); return $nameSpaceObject; }
/** * Overrides the according method of the printer since * we don't want to get all Namespace Statements here * Since namespace extends * * @param PHPParser_Node_Stmt_Namespace $node * @return string */ public function pStmt_Namespace(PHPParser_Node_Stmt_Namespace $node) { return 'namespace' . (null !== $node->getName() ? ' ' . $this->p($node->getName()) : '') . ';'; }