PhpParser\PrettyPrinter\Standard::pStmt_ClassMethod PHP Method

pStmt_ClassMethod() protected method

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