protected function getMethodsFromTargetClass(string $targetClassName): array
    {
        $methods = [];
        $class = new \ReflectionClass($targetClassName);

        foreach (['__construct', '__clone'] as $builtInMethodName) {
            if (!$class->hasMethod($builtInMethodName)) {
                $methods[] = [$targetClassName, $builtInMethodName];
            }
        }

        foreach ($class->getMethods() as $method) {
            $methods[] = [$targetClassName, $method->getName()];
        }

        return $methods;
    }
protected function getMethodsFromTargetClass(string $targetClassName): array
    {
        $methods = [];
        $class = new \ReflectionClass($targetClassName);

        foreach (['__construct', '__clone'] as $builtInMethodName) {
            if (!$class->hasMethod($builtInMethodName)) {
                $methods[] = [$targetClassName, $builtInMethodName];
            }
        }

        foreach ($class->getMethods() as $method) {
            $methods[] = [$targetClassName, $method->getName()];
        }

        return $methods;
    }
protected function getMethodsFromTargetClass ( string $ targetClassName ) : array { $ methods = [ ] ; $ class = new \ ReflectionClass ( $ targetClassName ) ; foreach ( [ '__construct' , '__clone' ] as $ builtInMethodName ) { if ( ! $ class -> hasMethod ( $ builtInMethodName ) ) { $ methods [ ] = [ $ targetClassName , $ builtInMethodName ] ; } } foreach ( $ class -> getMethods ( ) as $ method ) { $ methods [ ] = [ $ targetClassName , $ method -> getName ( ) ] ; } return $ methods ; }
Returns the methods of the target class.

@param string $targetClassName Name of the target class
@return array Method information with declaring class and method name pairs
Returns the methods of the target class .