public function getMethodNames() {
    return array_map(function (ClassMethodNode $node) {
      return $node->getName()->getText();
    }, $this->getMethods()->toArray());
  }
public function getMethodNames() {
    return array_map(function (ClassMethodNode $node) {
      return $node->getName()->getText();
    }, $this->getMethods()->toArray());
  }
public function getMethodNames ( ) { return array_map ( function ( ClassMethodNode $ node ) { return $ node -> getName ( ) -> getText ( ) ; } , $ this -> getMethods ( ) -> toArray ( ) ) ; }
Returns the names of all class methods, regardless of visibility.

@return string[]
Returns the names of all class methods regardless of visibility .