19 lines
284 B
PHP
19 lines
284 B
PHP
<?php
|
|
namespace Coroutine\Server;
|
|
|
|
use Swoole\Http\Response;
|
|
|
|
class Struct
|
|
{
|
|
public mixed $user;
|
|
public int $fd;
|
|
public Response $ws;
|
|
|
|
public function __construct(mixed $user, int $fd, Response $ws)
|
|
{
|
|
$this->fd = $fd;
|
|
$this->user = $user;
|
|
$this->ws = $ws;
|
|
}
|
|
}
|