public function Collection::getAll

Get all or a subset of matching key value pairs

Parameters

array $keys Pass an array of keys to retrieve only a subset of key value pairs:

Return value

array Returns an array of all matching key value pairs

File

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

Class

Collection
Key value pair collection object

Namespace

Guzzle\Common

Code

public function getAll(array $keys = null) {
  return $keys ? array_intersect_key($this->data, array_flip($keys)) : $this->data;
}