Return value, obscured if sensitive based on key and value
@param $key
@param $value
@return mixed
554050
protected function _obscureSensitiveKeyValue($key, $value)
    {
        // do not log additionalData in request
        if ($key == "additionalData") {
            $value = "NOT BEING LOGGED FOR SECURITY PURPOSES";
        }

        // Is this a sensitive key with a string or numeric value?
        if (in_array(strtolower($key), self::$_sensitiveDataKeys) && (is_string($value) || is_numeric($value))) {
            $strVal = (string)$value;
            return $this->_obscureString($strVal);
        }

        // Recursively work through the value
        return $this->obscureSensitiveData($value);
    }
937564
public static function options($key = null, $value = null)
    {
        $options = static::setup();
        if (!$key) {
            return $options;
        }
        if (!$value) {
            return $options[$key] ?? null;
        }
        static::$options[$key] = $value;

        return static::$options;
    }
821699
private function getValue($value)
    {
        if ($value === null) {
            return null;
        }

        if ($value instanceof String_ || $value instanceof LNumber || $value instanceof DNumber) {
            return $value->value;
        } elseif ($value instanceof ConstFetch) {
            $value = (string)$value->name;
            if ($value === 'null') {
                return null;
            } elseif ($value === 'true') {
                return true;
            } elseif ($value === 'false') {
                return false;
            }

            return $value;
        } elseif ($value instanceof Array_) {
            return $this->getArray($value);
        }

        return null;
    }
479022
public function cacheSet($key, $value)
    {
        return $this->cache() ? $this->cache()->set($key, $value) : null;
    }
402121
public function findBy($key, $value)
    {
        return $this->plugger
            ->setModel($this)
            ->setAdapter(User::class)
            ->plugIn(get_user_by($key, $value))
            ->getConnected()
            ->first();
    }
780035
public function getKey($value): Option
	{
		if ($this->containsValue($value))
		{
			return new Option(array_search($value, $this->data, true), true);
		}
		else
		{
			return new Option(null, false);
		}
	}
1239306
public function get($key, $value = null)
    {
        return $this->headerBag->key($key, $value, true);
    }
175032
public function get($key, $value = null)
    {
        return $this->postBag->key($key, $value, true);
    }
1151340
public function set($key, $value)
    {
        $allowed = array_diff(array_keys(get_class_vars(get_class($this))), $this->_hidden);
        if (empty($allowed) || !empty($allowed) && in_array($key, $allowed)) {
            if (method_exists($this, 'set' . ucfirst($key))) {
                call_user_func_array([$this, 'set' . ucfirst($key)], [$value]);
            } else {
                $this->{$key} = self::modelize($key, $value);
            }
        }

        return $this;
    }
788959
public function put(string $key, $value)
    {
        $this->cache[$this->hashKey($key)] = $value;
        return $value;
    }
276456
public function query($key, $value = null)
    {
        if ($value) {
            return $this->replicate(['query' => [$key => $value]]);
        }

        return $this->replicate(['query' => $key]);
    }
174423
public function filter($key, $value = null)
    {
        if (! $key instanceof \Closure) {
            $closure = function($entity) use ($key, $value) {
                return $entity->$key == $value;
            };
        } else {
            $closure = $key;
        }
        
        $filtered = new Entities();
        foreach ($this->_entities as $entity) {
            if ($closure($entity)) {
                $filtered->add($entity);
            }
        }
        return $filtered;
    }
1333490
private function filter($key, $value)
    {
        if (isset($this->filters[ $key ])) {
            foreach ($this->filters[ $key ] as $filter) {
                $value = $filter($value);
            }
        }

        return $value;
    }
627849
public function input($key, $value = null)
    {
        if (is_null($value)) {
            return Arr::get($this->inputs, $key);
        }

        return Arr::set($this->inputs, $key, $value);
    }
472027
public function keyOf($value)
    {
        foreach ($this->items as $key => $iValue) {
            if ($value === $iValue) {
                return $key;
            }
        }

        return null;
    }
629758
protected function config($key, $value = null)
    {
        $config = $this->getDeployConfig();

        if ($value !== null) {
            $config->set($key, $value);
        } else {
            return $config->get($key);
        }

    }
111490
public function setting( $key, $value = false )
	{
		if( !$value )
		{
			return $this->_setting[$key];
		}
		else
		{
			$this->_setting[$key] = $value;
			return $value;
		}
	}