HEX
Server: Apache
System: Linux webm006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/dallavitae/OLD_WP/wp-content/plugins/cloudflare/src/Integration/DefaultConfig.php
<?php

namespace CF\Integration;

class DefaultConfig implements ConfigInterface
{
    private $config;

    /**
     * @param $config from file_get_contents()
     */
    public function __construct($config = "[]")
    {
        $this->config = json_decode($config, true);
    }

    /**
     * @param $key
     *
     * @return value or key or null
     */
    public function getValue($key)
    {
        $value = null;
        if (array_key_exists($key, $this->config)) {
            $value = $this->config[$key];
        }

        return $value;
    }
}