mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-07 16:55:35 +08:00
29 lines
459 B
PHP
29 lines
459 B
PHP
<?php
|
|
|
|
|
|
namespace Scheduler;
|
|
|
|
|
|
use Swoole\Coroutine\Http\Client;
|
|
use Swoole\WebSocket\Frame;
|
|
|
|
class MessageEvent
|
|
{
|
|
/**
|
|
* @var Frame
|
|
*/
|
|
private $frame;
|
|
/**
|
|
* @var Client
|
|
*/
|
|
private $client;
|
|
|
|
public function __construct(Client $client, Frame $frame) {
|
|
$this->client = $client;
|
|
$this->frame = $frame;
|
|
}
|
|
|
|
public function onActivate() {
|
|
//TODO: 写Scheduler计时器内的处理逻辑
|
|
}
|
|
} |