@@ -28,8 +28,6 @@ trait OffersHooks
28
28
29
29
/**
30
30
* Needs to be called in order to initialize the trait.
31
- *
32
- * @return void
33
31
*/
34
32
protected function initializeEventHandlers (): void
35
33
{
@@ -59,9 +57,6 @@ protected function initializeEventHandlers(): void
59
57
* ```
60
58
*
61
59
* Multiple event handlers can be registered at the same time.
62
- *
63
- * @param \Closure $callback
64
- * @return MqttClient
65
60
*/
66
61
public function registerLoopEventHandler (\Closure $ callback ): MqttClient
67
62
{
@@ -77,9 +72,6 @@ public function registerLoopEventHandler(\Closure $callback): MqttClient
77
72
*
78
73
* This does not affect other registered event handlers. It is possible
79
74
* to unregister all registered event handlers by passing null as callback.
80
- *
81
- * @param \Closure|null $callback
82
- * @return MqttClient
83
75
*/
84
76
public function unregisterLoopEventHandler (\Closure $ callback = null ): MqttClient
85
77
{
@@ -96,9 +88,6 @@ public function unregisterLoopEventHandler(\Closure $callback = null): MqttClien
96
88
/**
97
89
* Runs all registered loop event handlers with the given parameters.
98
90
* Each event handler is executed in a try-catch block to avoid spilling exceptions.
99
- *
100
- * @param float $elapsedTime
101
- * @return void
102
91
*/
103
92
private function runLoopEventHandlers (float $ elapsedTime ): void
104
93
{
@@ -134,9 +123,6 @@ private function runLoopEventHandlers(float $elapsedTime): void
134
123
* ```
135
124
*
136
125
* Multiple event handlers can be registered at the same time.
137
- *
138
- * @param \Closure $callback
139
- * @return MqttClient
140
126
*/
141
127
public function registerPublishEventHandler (\Closure $ callback ): MqttClient
142
128
{
@@ -152,9 +138,6 @@ public function registerPublishEventHandler(\Closure $callback): MqttClient
152
138
*
153
139
* This does not affect other registered event handlers. It is possible
154
140
* to unregister all registered event handlers by passing null as callback.
155
- *
156
- * @param \Closure|null $callback
157
- * @return MqttClient
158
141
*/
159
142
public function unregisterPublishEventHandler (\Closure $ callback = null ): MqttClient
160
143
{
@@ -171,13 +154,6 @@ public function unregisterPublishEventHandler(\Closure $callback = null): MqttCl
171
154
/**
172
155
* Runs all the registered publish event handlers with the given parameters.
173
156
* Each event handler is executed in a try-catch block to avoid spilling exceptions.
174
- *
175
- * @param string $topic
176
- * @param string $message
177
- * @param int|null $messageId
178
- * @param int $qualityOfService
179
- * @param bool $retain
180
- * @return void
181
157
*/
182
158
private function runPublishEventHandlers (string $ topic , string $ message , ?int $ messageId , int $ qualityOfService , bool $ retain ): void
183
159
{
@@ -214,9 +190,6 @@ private function runPublishEventHandlers(string $topic, string $message, ?int $m
214
190
* ```
215
191
*
216
192
* Multiple event handlers can be registered at the same time.
217
- *
218
- * @param \Closure $callback
219
- * @return MqttClient
220
193
*/
221
194
public function registerMessageReceivedEventHandler (\Closure $ callback ): MqttClient
222
195
{
@@ -231,9 +204,6 @@ public function registerMessageReceivedEventHandler(\Closure $callback): MqttCli
231
204
*
232
205
* This does not affect other registered event handlers. It is possible
233
206
* to unregister all registered event handlers by passing null as callback.
234
- *
235
- * @param \Closure|null $callback
236
- * @return MqttClient
237
207
*/
238
208
public function unregisterMessageReceivedEventHandler (\Closure $ callback = null ): MqttClient
239
209
{
@@ -250,12 +220,6 @@ public function unregisterMessageReceivedEventHandler(\Closure $callback = null)
250
220
/**
251
221
* Runs all the registered message received event handlers with the given parameters.
252
222
* Each event handler is executed in a try-catch block to avoid spilling exceptions.
253
- *
254
- * @param string $topic
255
- * @param string $message
256
- * @param int $qualityOfService
257
- * @param bool $retained
258
- * @return void
259
223
*/
260
224
private function runMessageReceivedEventHandlers (string $ topic , string $ message , int $ qualityOfService , bool $ retained ): void
261
225
{
@@ -293,9 +257,6 @@ private function runMessageReceivedEventHandlers(string $topic, string $message,
293
257
* ```
294
258
*
295
259
* Multiple event handlers can be registered at the same time.
296
- *
297
- * @param \Closure $callback
298
- * @return MqttClient
299
260
*/
300
261
public function registerConnectedEventHandler (\Closure $ callback ): MqttClient
301
262
{
@@ -310,9 +271,6 @@ public function registerConnectedEventHandler(\Closure $callback): MqttClient
310
271
*
311
272
* This does not affect other registered event handlers. It is possible
312
273
* to unregister all registered event handlers by passing null as callback.
313
- *
314
- * @param \Closure|null $callback
315
- * @return MqttClient
316
274
*/
317
275
public function unregisterConnectedEventHandler (\Closure $ callback = null ): MqttClient
318
276
{
@@ -329,9 +287,6 @@ public function unregisterConnectedEventHandler(\Closure $callback = null): Mqtt
329
287
/**
330
288
* Runs all the registered connected event handlers.
331
289
* Each event handler is executed in a try-catch block to avoid spilling exceptions.
332
- *
333
- * @param bool $isAutoReconnect
334
- * @return void
335
290
*/
336
291
private function runConnectedEventHandlers (bool $ isAutoReconnect ): void
337
292
{
0 commit comments