mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 21:24:52 +08:00
32 lines
453 B
PHP
32 lines
453 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace ZM\Context;
|
|
|
|
use ZM\Context\Trait\BotActionTrait;
|
|
|
|
/**
|
|
* 机器人裸连接的上下文
|
|
*/
|
|
class BotConnectContext
|
|
{
|
|
use BotActionTrait;
|
|
|
|
protected ?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;
|
|
}
|
|
}
|