Task/Collect/MethodCollector.php
public function collectMethods($name) {
    // Get a reflection class for the interface.
    $reflection = new \ReflectionClass($name);
    $methods = $reflection->getMethods();

    $data = [];

    foreach ($methods as $method) {
      // Dev trapdoor.
      if ($method->getName() != 'storageSettingsForm') {
        //continue;
      }

      $data[$method->getName()] = $this->getMethodData($method);
    }

    return $data;
  }
public function collectMethods($name) {
    // Get a reflection class for the interface.
    $reflection = new \ReflectionClass($name);
    $methods = $reflection->getMethods();

    $data = [];

    foreach ($methods as $method) {
      // Dev trapdoor.
      if ($method->getName() != 'storageSettingsForm') {
        //continue;
      }

      $data[$method->getName()] = $this->getMethodData($method);
    }

    return $data;
  }
public function collectMethods ( $ name ) { // Get a reflection class for the interface. $ reflection = new \ ReflectionClass ( $ name ) ; $ methods = $ reflection -> getMethods ( ) ; $ data = [ ] ; foreach ( $ methods as $ method ) { // Dev trapdoor. if ( $ method -> getName ( ) != 'storageSettingsForm' ) { //continue; } $ data [ $ method -> getName ( ) ] = $ this -> getMethodData ( $ method ) ; } return $ data ; }
Get data for the methods of a class or interface.

TODO: remove this, use getMethodData() from other classes.

@param $name
The fully-qualified name of the class or interface.

@return
An array keyed by method name, where each value is an array containing:
- 'name: The name of the method.
- 'declaration': The function declaration line.
- 'description': The description from the method's docblock first line.
Get data for the methods of a class or interface .