1 | <?php |
||
8 | final class ProfiledClientStorage |
||
9 | { |
||
10 | /** @var array[] */ |
||
11 | private $pairs = []; |
||
12 | /** @var array[] */ |
||
13 | private $unmatchedResponse = []; |
||
14 | /** @var string */ |
||
15 | private $clientName; |
||
16 | |||
17 | /** |
||
18 | * RpcProfiler constructor. |
||
19 | * |
||
20 | * @param string $clientName |
||
21 | */ |
||
22 | 2 | public function __construct($clientName) |
|
26 | |||
27 | /** |
||
28 | * @param RpcRequestInterface|RpcRequestInterface[] $calls |
||
29 | */ |
||
30 | 2 | public function registerCalls($calls) |
|
42 | |||
43 | /** |
||
44 | * @param RpcResponseInterface $response |
||
45 | * @param RpcRequestInterface $request |
||
46 | */ |
||
47 | 2 | public function registerResponse(RpcResponseInterface $response, RpcRequestInterface $request = null) |
|
60 | |||
61 | /** |
||
62 | * @return array[] |
||
63 | */ |
||
64 | 1 | public function getFullPairs() |
|
73 | |||
74 | 1 | public function getUnmatchedRequestPairs() |
|
83 | |||
84 | /** |
||
85 | * @return array[] |
||
86 | */ |
||
87 | 1 | public function getUnmatchedResponsePairs() |
|
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | 1 | public function getClientName() |
|
99 | } |
||
100 |