| 1 | <?php |
||
| 9 | final class TraceableResponseCollection implements \IteratorAggregate, ResponseCollectionInterface |
||
| 10 | { |
||
| 11 | /** @var ResponseCollectionInterface */ |
||
| 12 | private $collection; |
||
| 13 | /** @var Stopwatch */ |
||
| 14 | private $stopwatch; |
||
| 15 | /** @var string */ |
||
| 16 | private $client; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * TraceableResponseCollection constructor. |
||
| 20 | * |
||
| 21 | * @param ResponseCollectionInterface $collection |
||
| 22 | * @param Stopwatch $stopwatch |
||
| 23 | * @param string $client |
||
| 24 | */ |
||
| 25 | 2 | public function __construct( |
|
| 34 | |||
| 35 | /** {@inheritdoc} */ |
||
| 36 | 1 | public function getResponse(RpcRequestInterface $request) |
|
| 44 | |||
| 45 | /** {@inheritdoc} */ |
||
| 46 | 1 | public function getIterator() |
|
| 53 | } |
||
| 54 |