public function getMethodReflection(string $class, string $method): ReflectionMethod
    {
        $index = static::METHOD_CACHE . $class . $method;

        return self::$reflections[$index]
            ?? self::$reflections[$index] =
                new ReflectionMethod($class, $method);
    }
public function getMethodReflection(string $class, string $method): ReflectionMethod
    {
        $index = static::METHOD_CACHE . $class . $method;

        return self::$reflections[$index]
            ?? self::$reflections[$index] =
                new ReflectionMethod($class, $method);
    }
public function getMethodReflection ( string $ class , string $ method ) : ReflectionMethod { $ index = static :: METHOD_CACHE . $ class . $ method ; return self :: $ reflections [ $ index ] ?? self :: $ reflections [ $ index ] = new ReflectionMethod ( $ class , $ method ) ; }
Get a method's reflection.

@param string $class  The class
@param string $method The method

@throws \ReflectionException

@return \ReflectionMethod
Get a method s reflection .