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; }
protected function yyn1($attributes) { $this->yyval = PHPParser_Node_Stmt_Namespace::postprocess($this->yyastk[$this->stackPos - (1 - 1)]); }
protected function yyn1($line, $docComment) { $this->yyval = PHPParser_Node_Stmt_Namespace::postprocess($this->yyastk[$this->yysp - (1 - 1)]); }
/** * 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()) : '') . ';'; }