mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
32 lines
451 B
PHP
32 lines
451 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace ZM\Context;
|
||
|
|
|
||
|
|
use ZM\Context\Trait\BotActionTrait;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 机器人裸连接的上下文
|
||
|
|
*/
|
||
|
|
class BotConnectContext
|
||
|
|
{
|
||
|
|
use BotActionTrait;
|
||
|
|
|
||
|
|
private ?array $self = null;
|
||
|
|
|
||
|
|
public function __construct(private int $flag, private int $fd)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getFd(): int
|
||
|
|
{
|
||
|
|
return $this->fd;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getFlag(): int
|
||
|
|
{
|
||
|
|
return $this->flag;
|
||
|
|
}
|
||
|
|
}
|