This commit is contained in:
2021-07-17 02:16:49 +08:00
parent 878b167d95
commit 51c3637ed2
18 changed files with 912 additions and 420 deletions
+50
View File
@@ -0,0 +1,50 @@
<?php
use SInterface\CustomProcess;
use Swoole\Process;
/**
* Class RelationshipSystemProcess
*/
class RelationshipSystemProcess implements CustomProcess
{
/**
* RelationshipSystemProcess constructor.
* @param mixed $params
*/
public function __construct(public mixed $params)
{
}
/**
* @param Process $process
* @return string
*/
public function getProcessName(Process $process): string
{
return 'system-service: ' . get_called_class() . '[' . $process->pid . ']';
}
/**
* @param mixed $data
*/
public function receive(mixed $data): void
{
}
/**
*
*/
public function onHandler(Process $process): void
{
// TODO: Implement onHandler() method.
}
}