PhpParser\Builder\Method::getNode PHP Method

getNode() public method

Returns the built method node.
public getNode ( ) : ClassMethod
return PhpParser\Node\Stmt\ClassMethod The built method node
    public function getNode() {
        return new Stmt\ClassMethod($this->name, array(
            'flags'      => $this->flags,
            'byRef'      => $this->returnByRef,
            'params'     => $this->params,
            'returnType' => $this->returnType,
            'stmts'      => $this->stmts,
        ), $this->attributes);
    }