This commit is contained in:
2026-04-04 10:29:39 +08:00
parent 4e999574a9
commit b77321ff4b
6 changed files with 232 additions and 213 deletions
+10 -7
View File
@@ -1,18 +1,21 @@
<?php
namespace Coroutine\Server;
use Kiri\Router\Base\AuthorizationInterface;
use Swoole\Http\Request;
use Swoole\Http\Response;
class Struct
{
public mixed $user;
public int $fd;
public Response $ws;
public AuthorizationInterface $user;
public Request $request;
public Response $ws;
public function __construct(mixed $user, int $fd, Response $ws)
public function __construct(AuthorizationInterface $user, Request $request, Response $ws)
{
$this->fd = $fd;
$this->user = $user;
$this->ws = $ws;
$this->request = $request;
$this->user = $user;
$this->ws = $ws;
}
}