1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-25 02:22:57 +01:00

Adding getAll() to HeaderCollection for better compatibility with Collection

This commit is contained in:
Michael Dowling 2013-05-29 00:38:37 -07:00
parent 598567d166
commit 0676a36332

View File

@ -116,4 +116,14 @@ class HeaderCollection implements \IteratorAggregate, \Countable, \ArrayAccess,
return $result;
}
/**
* Get an array of header objects
*
* @return array
*/
public function getAll()
{
return $this->headers;
}
}