111
This commit is contained in:
@@ -8,7 +8,7 @@ use Swoole\Server;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
interface OnClose
|
||||
interface OnCloseInterface
|
||||
{
|
||||
|
||||
|
||||
@@ -19,11 +19,4 @@ interface OnClose
|
||||
public function onClose(Server $server, int $fd): void;
|
||||
|
||||
|
||||
/**
|
||||
* @param Server $server
|
||||
* @param int $fd
|
||||
*/
|
||||
public function onDisconnect(Server $server, int $fd): void;
|
||||
|
||||
|
||||
}
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace Server\SInterface;
|
||||
|
||||
use Swoole\Server;
|
||||
|
||||
interface OnConnect
|
||||
interface OnConnectInterface
|
||||
{
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Server\SInterface;
|
||||
|
||||
use Swoole\Server;
|
||||
|
||||
interface OnDisconnectInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param Server $server
|
||||
* @param int $fd
|
||||
*/
|
||||
public function onDisconnect(Server $server, int $fd): void;
|
||||
|
||||
|
||||
}
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace Server\SInterface;
|
||||
|
||||
use Swoole\Http\Response;
|
||||
|
||||
interface DownloadInterface
|
||||
interface OnDownloadInterface
|
||||
{
|
||||
|
||||
public function dispatch(Response $response);
|
||||
+1
-1
@@ -9,7 +9,7 @@ use Swoole\Http\Response;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
interface OnHandshake
|
||||
interface OnHandshakeInterface
|
||||
{
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ namespace Server\SInterface;
|
||||
use Swoole\Server;
|
||||
use Swoole\WebSocket\Frame;
|
||||
|
||||
interface OnMessage
|
||||
interface OnMessageInterface
|
||||
{
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Server\SInterface;
|
||||
|
||||
use Server\Abstracts\Server;
|
||||
|
||||
interface OnPacket
|
||||
interface OnPacketInterface
|
||||
{
|
||||
|
||||
|
||||
+2
-2
@@ -5,10 +5,10 @@ namespace Server\SInterface;
|
||||
|
||||
|
||||
/**
|
||||
* Interface PipeMessage
|
||||
* Interface OnPipeMessageInterface
|
||||
* @package Server\SInterface
|
||||
*/
|
||||
interface PipeMessage
|
||||
interface OnPipeMessageInterface
|
||||
{
|
||||
|
||||
/**
|
||||
+2
-2
@@ -8,10 +8,10 @@ use Swoole\Process;
|
||||
|
||||
|
||||
/**
|
||||
* Interface CustomProcess
|
||||
* Interface OnProcessInterface
|
||||
* @package SInterface
|
||||
*/
|
||||
interface CustomProcess
|
||||
interface OnProcessInterface
|
||||
{
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ use Swoole\Server;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
interface OnReceive
|
||||
interface OnReceiveInterface
|
||||
{
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ namespace Server\SInterface;
|
||||
use Swoole\Http\Request;
|
||||
use Swoole\Http\Response;
|
||||
|
||||
interface OnRequest
|
||||
interface OnRequestInterface
|
||||
{
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Server\SInterface;
|
||||
|
||||
use Swoole\Server;
|
||||
|
||||
interface TaskExecute
|
||||
interface OnTaskInterface
|
||||
{
|
||||
|
||||
public function execute();
|
||||
Reference in New Issue
Block a user