File "Config.php"

Full Path: /home/romayxjt/public_html/wp-content/plugins/fluentform/vendor/wpfluent/framework/src/WPFluent/Foundation/Config.php
File size: 522 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace FluentForm\Framework\Foundation;

use FluentForm\Framework\Support\Arr;

class Config
{
    protected $data = null;

    public function __construct($data)
    {
        $this->data = $data;
    }

    public function all()
    {
        return $this->get();
    }

    public function get($key = null, $default = null)
    {
        return $key ? Arr::get($this->data, $key, $default) : $this->data;
    }

    public function set($key, $value)
    {
        Arr::set($this->data, $key, $value);
    }
}