We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5ca7cb + 475fc1b commit 70bc097Copy full SHA for 70bc097
1 file changed
src/DataCollector/StatsdDataCollector.php
@@ -19,9 +19,19 @@ class StatsdDataCollector extends DataCollector
19
*/
20
public function __construct()
21
{
22
- $this->statsdClients = [];
23
- $this->data['clients'] = [];
24
- $this->data['operations'] = 0;
+ $this->reset();
+ }
+
25
+ /**
26
+ * Reset the data collector to initial state
27
+ */
28
+ public function reset()
29
+ {
30
+ $this->statsdClients = [];
31
+ $this->data = [
32
+ 'clients' => [],
33
+ 'operations' => 0,
34
+ ];
35
}
36
37
/**
0 commit comments