PhpParser\PrettyPrinter\Standard::pExpr_New PHP Method

pExpr_New() protected method

protected pExpr_New ( PhpParser\Node\Expr\New_ $node )
$node PhpParser\Node\Expr\New_
    protected function pExpr_New(Expr\New_ $node) {
        if ($node->class instanceof Stmt\Class_) {
            $args = $node->args ? '(' . $this->pCommaSeparated($node->args) . ')' : '';
            return 'new ' . $this->pClassCommon($node->class, $args);
        }
        return 'new ' . $this->p($node->class) . '(' . $this->pCommaSeparated($node->args) . ')';
    }
Standard