src/Dispatcher/ClassAutoBind.php
private function getMethodParameters(string $class, string $methodName) : array
    {
        $methodReflection = new ReflectionMethod($class, $methodName);
        $parametersName   = [];

        foreach ($methodReflection->getParameters() as $parameter) {
            $parametersName[] = $parameter->name;
        }

        return $parametersName;
    }
private function getMethodParameters(string $class, string $methodName) : array
    {
        $methodReflection = new ReflectionMethod($class, $methodName);
        $parametersName   = [];

        foreach ($methodReflection->getParameters() as $parameter) {
            $parametersName[] = $parameter->name;
        }

        return $parametersName;
    }
private function getMethodParameters ( string $ class , string $ methodName ) : array { $ methodReflection = new ReflectionMethod ( $ class , $ methodName ) ; $ parametersName = [ ] ; foreach ( $ methodReflection -> getParameters ( ) as $ parameter ) { $ parametersName [ ] = $ parameter -> name ; } return $ parametersName ; }
Get names of parameters for provided class and method

@param string $class      name of class
@param string $methodName name of method

@return array
Get names of parameters for provided class and method