HEX
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: u106391720 (10342218)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /homepages/34/d890102484/htdocs/wp-content/plugins/visualcomposer/visualcomposer/Env.php
<?php

if (!defined('ABSPATH')) {
    header('Status: 403 Forbidden');
    header('HTTP/1.1 403 Forbidden');
    exit;
}

/**
 * PHP 5.1! No namespaces must be there!
 */

/**
 * Class VcvEnv.
 */
class VcvEnv
{
    protected static $variables = [];

    public static function has($key)
    {
        return array_key_exists($key, VcvEnv::$variables);
    }

    public static function get($key, $default = null)
    {
        return VcvEnv::has($key) ? VcvEnv::$variables[ $key ] : $default;
    }

    public static function set($key, $value)
    {
        VcvEnv::$variables[ $key ] = $value;
    }

    public static function all()
    {
        return VcvEnv::$variables;
    }
}