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