1 | <?php |
||
18 | class InfluxDbEventListener |
||
19 | { |
||
20 | const STORAGE_KEY_UDP = 'udp'; |
||
21 | const STORAGE_KEY_HTTP = 'http'; |
||
22 | |||
23 | /** |
||
24 | * @var Database |
||
25 | */ |
||
26 | private $httpDatabase; |
||
27 | |||
28 | /** |
||
29 | * @var Database |
||
30 | */ |
||
31 | private $udpDatabase; |
||
32 | |||
33 | /** |
||
34 | * @var array |
||
35 | */ |
||
36 | private $storage; |
||
37 | |||
38 | /** |
||
39 | * @param Database $httpDatabase |
||
40 | * @param Database $udpDatabase |
||
41 | */ |
||
42 | 4 | public function __construct( |
|
50 | |||
51 | 4 | public function onPointsCollected(InfluxDbEvent $event): bool |
|
76 | |||
77 | /** |
||
78 | * @param Event $event |
||
79 | * |
||
80 | * @return bool |
||
81 | */ |
||
82 | 2 | public function onKernelTerminate(Event $event): bool |
|
97 | |||
98 | 4 | private function initStorage() |
|
105 | |||
106 | /** |
||
107 | * @param Point[] $points |
||
108 | * @param string $precision |
||
109 | */ |
||
110 | 2 | private function writeUdpPoints(array $points, string $precision) |
|
114 | |||
115 | /** |
||
116 | * @param Point[] $points |
||
117 | * @param string $precision |
||
118 | */ |
||
119 | 2 | private function writeHttpPoints(array $points, string $precision) |
|
123 | } |
||
124 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.