1 | <?php |
||
8 | class TraceableClient implements RpcClientInterface |
||
9 | { |
||
10 | /** @var RpcClientInterface */ |
||
11 | private $client; |
||
12 | /** @var Stopwatch */ |
||
13 | private $stopwatch; |
||
14 | /** @var string */ |
||
15 | private $clientName; |
||
16 | |||
17 | /** |
||
18 | * TraceableClient constructor. |
||
19 | * |
||
20 | * @param RpcClientInterface $client |
||
21 | * @param Stopwatch $stopwatch |
||
22 | * @param string $clientName |
||
23 | */ |
||
24 | 3 | public function __construct(RpcClientInterface $client, Stopwatch $stopwatch, $clientName = 'api_client') |
|
30 | |||
31 | /** {@inheritdoc} */ |
||
32 | 1 | public function invoke($calls) |
|
44 | } |
||
45 |