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