src/Guzzle/Plugin/History/HistoryPlugin.php
public function getIterator()
    {
        // Return an iterator just like the old iteration of the HistoryPlugin for BC compatibility (use getAll())
        return new \ArrayIterator(array_map(function ($entry) {
            $entry['request']->getParams()->set('actual_response', $entry['response']);
            return $entry['request'];
        }, $this->transactions));
    }
public function getIterator()
    {
        // Return an iterator just like the old iteration of the HistoryPlugin for BC compatibility (use getAll())
        return new \ArrayIterator(array_map(function ($entry) {
            $entry['request']->getParams()->set('actual_response', $entry['response']);
            return $entry['request'];
        }, $this->transactions));
    }
public function getIterator ( ) { // Return an iterator just like the old iteration of the HistoryPlugin for BC compatibility (use getAll()) return new \ ArrayIterator ( array_map ( function ( $ entry ) { $ entry [ 'request' ] -> getParams ( ) -> set ( 'actual_response' , $ entry [ 'response' ] ) ; return $ entry [ 'request' ] ; } , $ this -> transactions ) ) ; }
Get the requests in the history

@return \ArrayIterator
Get the requests in the history