first commit

This commit is contained in:
2021-11-03 15:17:52 +08:00
commit 000d084abf
48 changed files with 2317 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
namespace Server\SInterface;
use Swoole\Process;
/**
* Interface BaseProcess
* @package SInterface
*/
interface OnProcessInterface
{
/**
* @param Process $process
* @return string
*/
public function getProcessName(Process $process): string;
/**
* @param Process $process
*/
public function signListen(Process $process): void;
/**
* @param Process $process
*/
public function onHandler(Process $process): void;
/**
*
*/
public function onProcessStop(): void;
}