PhpParser\PrettyPrinter\Standard::pStmt_Function PHP Method

pStmt_Function() protected method

protected pStmt_Function ( Function_ $node )
$node PhpParser\Node\Stmt\Function_
    protected function pStmt_Function(Stmt\Function_ $node) {
        return 'function ' . ($node->byRef ? '&' : '') . $node->name
             . '(' . $this->pCommaSeparated($node->params) . ')'
             . (null !== $node->returnType ? ' : ' . $this->pType($node->returnType) : '')
             . "\n" . '{' . $this->pStmts($node->stmts) . "\n" . '}';
    }
Standard