1 | <?php |
||
2 | |||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
3 | namespace Hhxsv5\LaravelS\Swoole\Process; |
||
4 | |||
5 | use Swoole\Http\Server; |
||
6 | use Swoole\Process; |
||
7 | |||
8 | interface CustomProcessInterface |
||
0 ignored issues
–
show
|
|||
9 | { |
||
10 | /** |
||
11 | * The run callback of process |
||
12 | * @param Server $swoole |
||
0 ignored issues
–
show
|
|||
13 | * @param Process $process |
||
0 ignored issues
–
show
|
|||
14 | * @return void |
||
0 ignored issues
–
show
|
|||
15 | */ |
||
16 | public static function callback(Server $swoole, Process $process); |
||
17 | |||
18 | /** |
||
19 | * Trigger this method on receiving the signal SIGUSR1 |
||
20 | * @param Server $swoole |
||
0 ignored issues
–
show
|
|||
21 | * @param Process $process |
||
0 ignored issues
–
show
|
|||
22 | * @return void |
||
0 ignored issues
–
show
|
|||
23 | */ |
||
24 | public static function onReload(Server $swoole, Process $process); |
||
25 | |||
26 | /** |
||
27 | * Trigger this method on receiving the signal SIGTERM |
||
28 | * Commented out due to version compatibility |
||
29 | * @param Server $swoole |
||
0 ignored issues
–
show
|
|||
30 | * @param Process $process |
||
0 ignored issues
–
show
|
|||
31 | * @return void |
||
0 ignored issues
–
show
|
|||
32 | */ |
||
33 | // public static function onStop(Server $swoole, Process $process); |
||
34 | } |