src/Helpers/ReflectionHelper.php
protected static function setReflectionToCache($reflection, $type = self::REFLECTION_CLASS, $objectOrName = null, ...$params)
    {
        if (null === $reflection || null === $objectOrName) {
            return null;
        }
        $key = static::getCacheKey($type, $objectOrName, ...$params);
        static::$_reflections[$type][$key] = $reflection;
        return $reflection;
    }
protected static function setReflectionToCache($reflection, $type = self::REFLECTION_CLASS, $objectOrName = null, ...$params)
    {
        if (null === $reflection || null === $objectOrName) {
            return null;
        }
        $key = static::getCacheKey($type, $objectOrName, ...$params);
        static::$_reflections[$type][$key] = $reflection;
        return $reflection;
    }
Save reflection to cache
@param \Reflector $reflection
@param string     $type
@param null       $objectOrName
@param mixed      ...$params
@return mixed