public function setValue($name, $value)
    {
        $child = & $this->data;

        foreach ($this->currentPath as $part) {
            if (isset($child[$part])) {
                $child = & $child[$part];
            } else {
                $child[$part] = [];
                $child = & $child[$part];
            }
        }

        $child[$name] = $value;
    }
public function setValue($name, $value)
    {
        $child = & $this->data;

        foreach ($this->currentPath as $part) {
            if (isset($child[$part])) {
                $child = & $child[$part];
            } else {
                $child[$part] = [];
                $child = & $child[$part];
            }
        }

        $child[$name] = $value;
    }
public function setValue ( $ name , $ value ) { $ child = & $ this -> data ; foreach ( $ this -> currentPath as $ part ) { if ( isset ( $ child [ $ part ] ) ) { $ child = & $ child [ $ part ] ; } else { $ child [ $ part ] = [ ] ; $ child = & $ child [ $ part ] ; } } $ child [ $ name ] = $ value ; }
Set a value in the current level.

@param string|int $name The name of the value to add.
@param string|int|array|null $value The value to add.
Set a value in the current level .