public function Collection::replace

Replace the data of the object with the value of an array

Parameters

array $data Associative array of data:

Return value

Collection Returns a reference to the object

File

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

Class

Collection
Key value pair collection object

Namespace

Guzzle\Common

Code

public function replace(array $data) {
  $this->data = $data;
  return $this;
}