예제 #1
0
 /**
  * Get defined methods for the given class or object Reflector.
  *
  * @param boolean    $showAll   Include private and protected methods.
  * @param \Reflector $reflector
  *
  * @return array
  */
 protected function getMethods($showAll, \Reflector $reflector)
 {
     $methods = array();
     foreach ($reflector->getMethods() as $name => $method) {
         if ($showAll || $method->isPublic()) {
             $methods[$method->getName()] = $method;
         }
     }
     // TODO: this should be natcasesort
     ksort($methods);
     return $methods;
 }
 /**
  * Get defined methods for the given class or object Reflector.
  *
  * @param bool       $showAll   Include private and protected methods.
  * @param \Reflector $reflector
  *
  * @return array
  */
 protected function getMethods($showAll, \Reflector $reflector)
 {
     $methods = array();
     foreach ($reflector->getMethods() as $name => $method) {
         if ($showAll || $method->isPublic()) {
             $methods[$method->getName()] = $method;
         }
     }
     // Removed task from comment. SPV
     ksort($methods);
     return $methods;
 }