src/Helpers/ReflectionHelper.php
public static function getPropertyReflection($objectOrName, $propertyName)
    {
        $cached = static::getReflectionFromCache(static::REFLECTION_PROPERTY, $objectOrName, $propertyName);
        if ($cached !== null) {
            return $cached;
        }
        try {
            $reflection = new \ReflectionProperty($objectOrName, $propertyName);
            return static::setReflectionToCache($reflection, static::REFLECTION_PROPERTY, $objectOrName, $propertyName);
        } catch (\ReflectionException $exception) {
            $reflection = null;
        }
        return $reflection;
    }
public static function getPropertyReflection($objectOrName, $propertyName)
    {
        $cached = static::getReflectionFromCache(static::REFLECTION_PROPERTY, $objectOrName, $propertyName);
        if ($cached !== null) {
            return $cached;
        }
        try {
            $reflection = new \ReflectionProperty($objectOrName, $propertyName);
            return static::setReflectionToCache($reflection, static::REFLECTION_PROPERTY, $objectOrName, $propertyName);
        } catch (\ReflectionException $exception) {
            $reflection = null;
        }
        return $reflection;
    }
Get property reflection
@param string|object $objectOrName
@param string        $propertyName
@return mixed|null|\ReflectionProperty