src/Guzzle/Common/Collection.php
public function overwriteWith($data)
    {
        if (is_array($data)) {
            $this->data = $data + $this->data;
        } elseif ($data instanceof Collection) {
            $this->data = $data->toArray() + $this->data;
        } else {
            foreach ($data as $key => $value) {
                $this->data[$key] = $value;
            }
        }

        return $this;
    }
public function overwriteWith($data)
    {
        if (is_array($data)) {
            $this->data = $data + $this->data;
        } elseif ($data instanceof Collection) {
            $this->data = $data->toArray() + $this->data;
        } else {
            foreach ($data as $key => $value) {
                $this->data[$key] = $value;
            }
        }

        return $this;
    }
public function overwriteWith ( $ data ) { if ( is_array ( $ data ) ) { $ this -> data = $ data + $ this -> data ; } elseif ( $ data instanceof Collection ) { $ this -> data = $ data -> toArray ( ) + $ this -> data ; } else { foreach ( $ data as $ key => $ value ) { $ this -> data [ $ key ] = $ value ; } } return $ this ; }
Over write key value pairs in this collection with all of the data from an array or collection.

@param array|\Traversable $data Values to override over this config

@return self
Over write key value pairs in this collection with all of the data from an array or collection .