code: protected function dumpMethods($methods)
      {
          $str = '';
          if (!empty($methods)) {
              $counts = array(
                  'public' => 0,
                  'protected' => 0,
                  'private' => 0,
                  'magic' => 0,
              );
              foreach ($methods as $info) {
                  $counts[ $info['visibility'] ] ++;
              }
              $str .= '  Methods:'."\n";
              foreach ($counts as $vis => $count) {
                  if ($count) {
                      $str .= '    '.$vis.': '.$count."\n";
                  }
              }
          } else {
              $str .= '  Methods: none!'."\n";
          }
          return $str;
      }
docs: Dump object methods as text
  
  @param array $methods methods as returned from getMethods
  
  @return string html