src/Base/AnnotationsReader.php
protected function getMethodReflection($method, $class = null)
    {
        if (is_object($method) && $method instanceof \ReflectionMethod) {
            return $method;
        }
        if ($class === null) {
            throw new InvalidArgumentException("Argument 'class' must be set");
        }
        return ReflectionHelper::getMethodReflection($class, $method);
    }
protected function getMethodReflection($method, $class = null)
    {
        if (is_object($method) && $method instanceof \ReflectionMethod) {
            return $method;
        }
        if ($class === null) {
            throw new InvalidArgumentException("Argument 'class' must be set");
        }
        return ReflectionHelper::getMethodReflection($class, $method);
    }
Get method reflection
@param string|\ReflectionMethod $method
@param string|object|null       $class
@return \ReflectionMethod