eee
This commit is contained in:
+10
-7
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user