@@ -18,7 +18,7 @@ abstract class Driver
18
18
*
19
19
* @return void
20
20
*/
21
- public abstract function run ();
21
+ abstract public function run ();
22
22
23
23
/**
24
24
* Stop the event loop.
@@ -28,7 +28,7 @@ public abstract function run();
28
28
*
29
29
* @return void
30
30
*/
31
- public abstract function stop ();
31
+ abstract public function stop ();
32
32
33
33
/**
34
34
* Defer the execution of a callback.
@@ -42,7 +42,7 @@ public abstract function stop();
42
42
*
43
43
* @return string An unique identifier that can be used to cancel, enable or disable the watcher.
44
44
*/
45
- public abstract function defer (callable $ callback , $ data = null );
45
+ abstract public function defer (callable $ callback , $ data = null );
46
46
47
47
/**
48
48
* Delay the execution of a callback.
@@ -57,7 +57,7 @@ public abstract function defer(callable $callback, $data = null);
57
57
*
58
58
* @return string An unique identifier that can be used to cancel, enable or disable the watcher.
59
59
*/
60
- public abstract function delay ($ delay , callable $ callback , $ data = null );
60
+ abstract public function delay ($ delay , callable $ callback , $ data = null );
61
61
62
62
/**
63
63
* Repeatedly execute a callback.
@@ -72,7 +72,7 @@ public abstract function delay($delay, callable $callback, $data = null);
72
72
*
73
73
* @return string An unique identifier that can be used to cancel, enable or disable the watcher.
74
74
*/
75
- public abstract function repeat ($ interval , callable $ callback , $ data = null );
75
+ abstract public function repeat ($ interval , callable $ callback , $ data = null );
76
76
77
77
/**
78
78
* Execute a callback when a stream resource becomes readable.
@@ -85,7 +85,7 @@ public abstract function repeat($interval, callable $callback, $data = null);
85
85
*
86
86
* @return string An unique identifier that can be used to cancel, enable or disable the watcher.
87
87
*/
88
- public abstract function onReadable ($ stream , callable $ callback , $ data = null );
88
+ abstract public function onReadable ($ stream , callable $ callback , $ data = null );
89
89
90
90
/**
91
91
* Execute a callback when a stream resource becomes writable.
@@ -98,7 +98,7 @@ public abstract function onReadable($stream, callable $callback, $data = null);
98
98
*
99
99
* @return string An unique identifier that can be used to cancel, enable or disable the watcher.
100
100
*/
101
- public abstract function onWritable ($ stream , callable $ callback , $ data = null );
101
+ abstract public function onWritable ($ stream , callable $ callback , $ data = null );
102
102
103
103
/**
104
104
* Execute a callback when a signal is received.
@@ -117,7 +117,7 @@ public abstract function onWritable($stream, callable $callback, $data = null);
117
117
*
118
118
* @throws UnsupportedFeatureException If signal handling is not supported.
119
119
*/
120
- public abstract function onSignal ($ signo , callable $ callback , $ data = null );
120
+ abstract public function onSignal ($ signo , callable $ callback , $ data = null );
121
121
122
122
/**
123
123
* Enable a watcher.
@@ -131,7 +131,7 @@ public abstract function onSignal($signo, callable $callback, $data = null);
131
131
*
132
132
* @throws InvalidWatcherException If the watcher identifier is invalid.
133
133
*/
134
- public abstract function enable ($ watcherId );
134
+ abstract public function enable ($ watcherId );
135
135
136
136
/**
137
137
* Disable a watcher. Disabling a watcher MUST NOT invalidate the watcher.
@@ -142,7 +142,7 @@ public abstract function enable($watcherId);
142
142
*
143
143
* @throws InvalidWatcherException If the watcher identifier is invalid.
144
144
*/
145
- public abstract function disable ($ watcherId );
145
+ abstract public function disable ($ watcherId );
146
146
147
147
/**
148
148
* Cancel a watcher. This will detatch the event loop from all resources that are associated to the watcher. After
@@ -153,7 +153,7 @@ public abstract function disable($watcherId);
153
153
*
154
154
* @return void
155
155
*/
156
- public abstract function cancel ($ watcherId );
156
+ abstract public function cancel ($ watcherId );
157
157
158
158
/**
159
159
* Reference a watcher.
@@ -167,7 +167,7 @@ public abstract function cancel($watcherId);
167
167
*
168
168
* @throws InvalidWatcherException If the watcher identifier is invalid.
169
169
*/
170
- public abstract function reference ($ watcherId );
170
+ abstract public function reference ($ watcherId );
171
171
172
172
/**
173
173
* Unreference a watcher.
@@ -181,7 +181,7 @@ public abstract function reference($watcherId);
181
181
*
182
182
* @throws InvalidWatcherException If the watcher identifier is invalid.
183
183
*/
184
- public abstract function unreference ($ watcherId );
184
+ abstract public function unreference ($ watcherId );
185
185
186
186
/**
187
187
* Stores information in the loop bound registry. This can be used to store loop bound information. Stored
@@ -228,7 +228,7 @@ public final function fetchState($key)
228
228
*
229
229
* @return void
230
230
*/
231
- public abstract function setErrorHandler (callable $ callback = null );
231
+ abstract public function setErrorHandler (callable $ callback = null );
232
232
233
233
/**
234
234
* Retrieve an associative array of information about the event loop driver.
@@ -250,7 +250,7 @@ public abstract function setErrorHandler(callable $callback = null);
250
250
*
251
251
* @return array
252
252
*/
253
- public abstract function info ();
253
+ abstract public function info ();
254
254
255
255
/**
256
256
* Get the underlying loop handle.
@@ -262,5 +262,5 @@ public abstract function info();
262
262
*
263
263
* @return null|object|resource The loop handle the event loop operates on. Null if there is none.
264
264
*/
265
- public abstract function getHandle ();
265
+ abstract public function getHandle ();
266
266
}
0 commit comments