public function set(string $key, $value)
    {
        $array = &$this->input;
        $keys = explode('.', $key);

        while (count($keys) > 1) {
            $k = array_shift($keys);
            if (!isset($array[$k]) || ! is_array($array[$k])) {
                $array[$k] = [];
            }
            $array = &$array[$k];
        }

        $array[array_shift($keys)] = $value;
        $this->cache[$key] = &$value;
    }
public function set(string $key, $value)
    {
        $array = &$this->input;
        $keys = explode('.', $key);

        while (count($keys) > 1) {
            $k = array_shift($keys);
            if (!isset($array[$k]) || ! is_array($array[$k])) {
                $array[$k] = [];
            }
            $array = &$array[$k];
        }

        $array[array_shift($keys)] = $value;
        $this->cache[$key] = &$value;
    }
public function set ( string $ key , $ value ) { $ array = & $ this -> input ; $ keys = explode ( '.' , $ key ) ; while ( count ( $ keys ) > 1 ) { $ k = array_shift ( $ keys ) ; if ( ! isset ( $ array [ $ k ] ) || ! is_array ( $ array [ $ k ] ) ) { $ array [ $ k ] = [ ] ; } $ array = & $ array [ $ k ] ; } $ array [ array_shift ( $ keys ) ] = $ value ; $ this -> cache [ $ key ] = & $ value ; }
Sets a value using dot notation
@param  string $key
@param  mixed $value
Sets a value using dot notation