public function Collection::overwriteWith

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

Parameters

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

Return value

self

File

drupal/core/vendor/guzzle/common/Guzzle/Common/Collection.php, line 434

Class

Collection
Key value pair collection object

Namespace

Guzzle\Common

Code

public function overwriteWith($data) {
  foreach ($data as $k => $v) {
    $this
      ->set($k, $v);
  }
  return $this;
}