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

38 lines
432 B
PHP
Raw Normal View History

2021-07-17 02:16:49 +08:00
<?php
namespace 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 onHandler(Process $process): void;
/**
* @param mixed $data
*/
public function receive(mixed $data): void;
}