This commit is contained in:
2021-11-18 11:37:12 +08:00
parent adc63be3e4
commit 740dc7ebbd
17 changed files with 27 additions and 27 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
namespace Server\Contract;
use Swoole\Process;
/**
* Interface BaseProcess
* @package Contract
*/
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;
}