Files
kiri-core/Server/SInterface/CustomProcess.php
T

44 lines
508 B
PHP
Raw Normal View History

2021-07-17 02:16:49 +08:00
<?php
2021-07-18 12:06:56 +08:00
namespace Server\SInterface;
2021-07-17 02:16:49 +08:00
use Swoole\Process;
/**
* Interface CustomProcess
* @package SInterface
*/
interface CustomProcess
{
/**
* @param Process $process
* @return string
*/
public function getProcessName(Process $process): string;
/**
* @param Process $process
*/
2021-08-19 15:22:48 +08:00
public function signListen(Process $process): void;
2021-07-17 02:16:49 +08:00
2021-08-19 15:22:48 +08:00
/**
* @param Process $process
*/
public function onHandler(Process $process): void;
2021-07-17 02:16:49 +08:00
2021-08-19 16:15:28 +08:00
/**
*
*/
public function onProcessStop(): void;
2021-07-17 02:16:49 +08:00
}