This commit is contained in:
2021-08-24 18:24:46 +08:00
parent 575f4b8520
commit 24c93edf2b
110 changed files with 5 additions and 6 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
namespace Server\SInterface;
use Swoole\Process;
/**
* Interface CustomProcess
* @package SInterface
*/
interface CustomProcess
{
/**
* @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;
}