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