Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | protected function doCollect() |
||
24 | { |
||
25 | $time = 0; |
||
26 | foreach ($this->callRegistry->getCalls() as $call) { |
||
27 | $time += (isset($call['duration']) ? $call['duration'] : 0); |
||
28 | } |
||
29 | |||
30 | $this->data = [ |
||
31 | 'total' => count($this->callRegistry->getCalls()), |
||
32 | 'time' => $time, |
||
33 | 'requests' => $this->callRegistry->getCalls(), |
||
34 | ]; |
||
35 | } |
||
36 | |||
78 |