/** {@inheritdoc} */ public function getIterator() { foreach ($this->collection as $response) { $this->profiler->registerResponse($response); (yield $response); } }