protected function getMethodReflector($method): ReflectionMethod
    {
        if (\is_string($method)) {
            return new ReflectionMethod($method);
        }

        return new ReflectionMethod($method[0], $method[1]);
    }
protected function getMethodReflector($method): ReflectionMethod
    {
        if (\is_string($method)) {
            return new ReflectionMethod($method);
        }

        return new ReflectionMethod($method[0], $method[1]);
    }
protected function getMethodReflector ( $ method ) : ReflectionMethod { if ( \ is_string ( $ method ) ) { return new ReflectionMethod ( $ method ) ; } return new ReflectionMethod ( $ method [ 0 ] , $ method [ 1 ] ) ; }
Get the reflection object for a method.

@param array|string $method

@throws \ReflectionException

@return \ReflectionMethod
Get the reflection object for a method .