PhpParser\PrettyPrinter\Standard::pStmt_Namespace PHP Method

pStmt_Namespace() protected method

Declarations
protected pStmt_Namespace ( Namespace_ $node )
$node PhpParser\Node\Stmt\Namespace_
    protected function pStmt_Namespace(Stmt\Namespace_ $node) {
        if ($this->canUseSemicolonNamespaces) {
            return 'namespace ' . $this->p($node->name) . ';' . "\n" . $this->pStmts($node->stmts, false);
        } else {
            return 'namespace' . (null !== $node->name ? ' ' . $this->p($node->name) : '')
                 . ' {' . $this->pStmts($node->stmts) . "\n" . '}';
        }
    }
Standard