@@ -18,7 +18,7 @@ abstract class Driver
1818 *
1919 * @return void
2020 */
21- public abstract function run ();
21+ abstract public function run ();
2222
2323 /**
2424 * Stop the event loop.
@@ -28,7 +28,7 @@ public abstract function run();
2828 *
2929 * @return void
3030 */
31- public abstract function stop ();
31+ abstract public function stop ();
3232
3333 /**
3434 * Defer the execution of a callback.
@@ -42,7 +42,7 @@ public abstract function stop();
4242 *
4343 * @return string An unique identifier that can be used to cancel, enable or disable the watcher.
4444 */
45- public abstract function defer (callable $ callback , $ data = null );
45+ abstract public function defer (callable $ callback , $ data = null );
4646
4747 /**
4848 * Delay the execution of a callback.
@@ -57,7 +57,7 @@ public abstract function defer(callable $callback, $data = null);
5757 *
5858 * @return string An unique identifier that can be used to cancel, enable or disable the watcher.
5959 */
60- public abstract function delay ($ delay , callable $ callback , $ data = null );
60+ abstract public function delay ($ delay , callable $ callback , $ data = null );
6161
6262 /**
6363 * Repeatedly execute a callback.
@@ -72,7 +72,7 @@ public abstract function delay($delay, callable $callback, $data = null);
7272 *
7373 * @return string An unique identifier that can be used to cancel, enable or disable the watcher.
7474 */
75- public abstract function repeat ($ interval , callable $ callback , $ data = null );
75+ abstract public function repeat ($ interval , callable $ callback , $ data = null );
7676
7777 /**
7878 * Execute a callback when a stream resource becomes readable.
@@ -85,7 +85,7 @@ public abstract function repeat($interval, callable $callback, $data = null);
8585 *
8686 * @return string An unique identifier that can be used to cancel, enable or disable the watcher.
8787 */
88- public abstract function onReadable ($ stream , callable $ callback , $ data = null );
88+ abstract public function onReadable ($ stream , callable $ callback , $ data = null );
8989
9090 /**
9191 * Execute a callback when a stream resource becomes writable.
@@ -98,7 +98,7 @@ public abstract function onReadable($stream, callable $callback, $data = null);
9898 *
9999 * @return string An unique identifier that can be used to cancel, enable or disable the watcher.
100100 */
101- public abstract function onWritable ($ stream , callable $ callback , $ data = null );
101+ abstract public function onWritable ($ stream , callable $ callback , $ data = null );
102102
103103 /**
104104 * Execute a callback when a signal is received.
@@ -117,7 +117,7 @@ public abstract function onWritable($stream, callable $callback, $data = null);
117117 *
118118 * @throws UnsupportedFeatureException If signal handling is not supported.
119119 */
120- public abstract function onSignal ($ signo , callable $ callback , $ data = null );
120+ abstract public function onSignal ($ signo , callable $ callback , $ data = null );
121121
122122 /**
123123 * Enable a watcher.
@@ -131,7 +131,7 @@ public abstract function onSignal($signo, callable $callback, $data = null);
131131 *
132132 * @throws InvalidWatcherException If the watcher identifier is invalid.
133133 */
134- public abstract function enable ($ watcherId );
134+ abstract public function enable ($ watcherId );
135135
136136 /**
137137 * Disable a watcher. Disabling a watcher MUST NOT invalidate the watcher.
@@ -142,7 +142,7 @@ public abstract function enable($watcherId);
142142 *
143143 * @throws InvalidWatcherException If the watcher identifier is invalid.
144144 */
145- public abstract function disable ($ watcherId );
145+ abstract public function disable ($ watcherId );
146146
147147 /**
148148 * 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);
153153 *
154154 * @return void
155155 */
156- public abstract function cancel ($ watcherId );
156+ abstract public function cancel ($ watcherId );
157157
158158 /**
159159 * Reference a watcher.
@@ -167,7 +167,7 @@ public abstract function cancel($watcherId);
167167 *
168168 * @throws InvalidWatcherException If the watcher identifier is invalid.
169169 */
170- public abstract function reference ($ watcherId );
170+ abstract public function reference ($ watcherId );
171171
172172 /**
173173 * Unreference a watcher.
@@ -181,7 +181,7 @@ public abstract function reference($watcherId);
181181 *
182182 * @throws InvalidWatcherException If the watcher identifier is invalid.
183183 */
184- public abstract function unreference ($ watcherId );
184+ abstract public function unreference ($ watcherId );
185185
186186 /**
187187 * 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)
228228 *
229229 * @return void
230230 */
231- public abstract function setErrorHandler (callable $ callback = null );
231+ abstract public function setErrorHandler (callable $ callback = null );
232232
233233 /**
234234 * Retrieve an associative array of information about the event loop driver.
@@ -250,7 +250,7 @@ public abstract function setErrorHandler(callable $callback = null);
250250 *
251251 * @return array
252252 */
253- public abstract function info ();
253+ abstract public function info ();
254254
255255 /**
256256 * Get the underlying loop handle.
@@ -262,5 +262,5 @@ public abstract function info();
262262 *
263263 * @return null|object|resource The loop handle the event loop operates on. Null if there is none.
264264 */
265- public abstract function getHandle ();
265+ abstract public function getHandle ();
266266}
0 commit comments