protected function getMethods($showAll, \Reflector $reflector, $noInherit = false)
    {
        $className = $reflector->getName();

        $methods = [];
        foreach ($reflector->getMethods() as $name => $method) {
            if ($noInherit && $method->getDeclaringClass()->getName() !== $className) {
                continue;
            }

            if ($showAll || $method->isPublic()) {
                $methods[$method->getName()] = $method;
            }
        }

        \ksort($methods, SORT_NATURAL | SORT_FLAG_CASE);

        return $methods;
    }
protected function getMethods($showAll, \Reflector $reflector, $noInherit = false)
    {
        $className = $reflector->getName();

        $methods = [];
        foreach ($reflector->getMethods() as $name => $method) {
            if ($noInherit && $method->getDeclaringClass()->getName() !== $className) {
                continue;
            }

            if ($showAll || $method->isPublic()) {
                $methods[$method->getName()] = $method;
            }
        }

        \ksort($methods, SORT_NATURAL | SORT_FLAG_CASE);

        return $methods;
    }
protected function getMethods ( $ showAll , \ Reflector $ reflector , $ noInherit = false ) { $ className = $ reflector -> getName ( ) ; $ methods = [ ] ; foreach ( $ reflector -> getMethods ( ) as $ name => $ method ) { if ( $ noInherit && $ method -> getDeclaringClass ( ) -> getName ( ) !== $ className ) { continue ; } if ( $ showAll || $ method -> isPublic ( ) ) { $ methods [ $ method -> getName ( ) ] = $ method ; } } \ ksort ( $ methods , SORT_NATURAL | SORT_FLAG_CASE ) ; return $ methods ; }
Get defined methods for the given class or object Reflector.

@param bool       $showAll   Include private and protected methods
@param \Reflector $reflector
@param bool       $noInherit Exclude inherited methods

@return array
Get defined methods for the given class or object Reflector .