lib/Doctrine/KeyValueStore/Storage/ArrayStorage.php
public function update($storageName, $key, array $data)
    {
        if (!isset($this->data[$storageName])) {
            $this->data[$storageName] = [];
        }

        $this->data[$storageName][serialize($key)] = $data;
    }
public function update($storageName, $key, array $data)
    {
        if (!isset($this->data[$storageName])) {
            $this->data[$storageName] = [];
        }

        $this->data[$storageName][serialize($key)] = $data;
    }
public function update ( $ storageName , $ key , array $ data ) { if ( ! isset ( $ this -> data [ $ storageName ] ) ) { $ this -> data [ $ storageName ] = [ ] ; } $ this -> data [ $ storageName ] [ serialize ( $ key ) ] = $ data ; }
Update data into the given key.

@param array|string $key
@param array        $data
Update data into the given key .