PhpParser\PrettyPrinter\Standard::pExpr_Closure PHP Method

pExpr_Closure() protected method

protected pExpr_Closure ( Closure $node )
$node PhpParser\Node\Expr\Closure
    protected function pExpr_Closure(Expr\Closure $node) {
        return ($node->static ? 'static ' : '')
             . 'function ' . ($node->byRef ? '&' : '')
             . '(' . $this->pCommaSeparated($node->params) . ')'
             . (!empty($node->uses) ? ' use(' . $this->pCommaSeparated($node->uses) . ')': '')
             . (null !== $node->returnType ? ' : ' . $this->pType($node->returnType) : '')
             . ' {' . $this->pStmts($node->stmts) . "\n" . '}';
    }
Standard