Contao\Cache::__get PHP Метод

__get() публичный Метод

Return a cache entry
Устаревший: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use Cache::get() instead.
public __get ( string $strKey ) : mixed | null
$strKey string The cache key
Результат mixed | null The cached data
    public function __get($strKey)
    {
        if (static::has($strKey)) {
            return static::get($strKey);
        }
        return null;
    }