Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
60 | public function start() : self |
||
61 | { |
||
62 | $this->timer = Timer::loop($this->cycled * 1000, function () { |
||
63 | $metrics = []; |
||
64 | |||
65 | $this->source->spouting(static function ( |
||
66 | string $typed, |
||
67 | string $named, |
||
68 | string $grouped, |
||
69 | string $description, |
||
70 | array $labels, |
||
71 | array $data |
||
72 | ) use (&$metrics) { |
||
73 | $metrics[$typed][$named][$grouped] = [$data, $labels, $description]; |
||
74 | }); |
||
75 | |||
76 | $this->metrics = $metrics; |
||
77 | }); |
||
78 | |||
79 | return $this; |
||
80 | } |
||
91 |