1 | <?php |
||
9 | class SoapDataCollector extends DataCollector |
||
10 | { |
||
11 | private $callRegistry; |
||
12 | |||
13 | /** |
||
14 | * SoapDataCollector constructor. |
||
15 | * @param SoapCallRegistry $callRegistry |
||
16 | */ |
||
17 | 6 | public function __construct(SoapCallRegistry $callRegistry) |
|
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | 6 | public function collect(Request $request, Response $response, \Exception $exception = null) |
|
38 | |||
39 | 4 | public function reset() |
|
40 | { |
||
41 | 4 | $this->data = [ |
|
42 | 'total' => 0, |
||
43 | 'time' => 0, |
||
44 | 'requests' => [], |
||
45 | ]; |
||
46 | 4 | } |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 6 | public function getName() |
|
55 | |||
56 | /** |
||
57 | * @return int |
||
58 | */ |
||
59 | 6 | public function getTotal() |
|
63 | |||
64 | /** |
||
65 | * @return int Time in milliseconds. |
||
66 | */ |
||
67 | public function getTime() |
||
71 | |||
72 | /** |
||
73 | * @return array |
||
74 | */ |
||
75 | public function getRequests() |
||
79 | } |
||
80 |