| 1 | <?php |
||
| 8 | final class ProfiledResponseCollection implements \IteratorAggregate, ResponseCollectionInterface |
||
| 9 | { |
||
| 10 | /** @var ResponseCollectionInterface */ |
||
| 11 | private $collection; |
||
| 12 | /** @var ProfiledClientStorage */ |
||
| 13 | private $profiler; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * ProfiledResponseCollection constructor. |
||
| 17 | * |
||
| 18 | * @param ResponseCollectionInterface $collection |
||
| 19 | * @param ProfiledClientStorage $profiler |
||
| 20 | */ |
||
| 21 | 2 | public function __construct(ResponseCollectionInterface $collection, ProfiledClientStorage $profiler) |
|
| 26 | |||
| 27 | |||
| 28 | /** {@inheritdoc} */ |
||
| 29 | 1 | public function getResponse(RpcRequestInterface $request) |
|
| 36 | |||
| 37 | /** {@inheritdoc} */ |
||
| 38 | 1 | public function getIterator() |
|
| 45 | } |
||
| 46 |