original_string: public function methods($filter = null)
      {
          if (is_null($filter))
          {
              $methods = $this->object->getMethods();
          }
          else
          {
              $methods = $this->object->getMethods($filter);
          }
  
          return array_map([$this, 'extractComment'], $methods);
      }
code: public function methods($filter = null)
      {
          if (is_null($filter))
          {
              $methods = $this->object->getMethods();
          }
          else
          {
              $methods = $this->object->getMethods($filter);
          }
  
          return array_map([$this, 'extractComment'], $methods);
      }
code_tokens: public function methods ( $ filter = null ) { if ( is_null ( $ filter ) ) { $ methods = $ this -> object -> getMethods ( ) ; } else { $ methods = $ this -> object -> getMethods ( $ filter ) ; } return array_map ( [ $ this , 'extractComment' ] , $ methods ) ; }
docstring: Get the comments for all methods.
  
  @param integer|null $filter
  @return array
docstring_tokens: Get the comments for all methods .