mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-08 17:25:35 +08:00
add @OnCloseEvent, @OnOpenEvent, @OnMessageEvent, @OnRequestEvent update EventDispatcher.php and change it to status-based schema fix @CQBefore bugs
37 lines
602 B
PHP
37 lines
602 B
PHP
<?php
|
|
|
|
|
|
namespace ZM\Annotation\Swoole;
|
|
|
|
use Doctrine\Common\Annotations\Annotation\Required;
|
|
use Doctrine\Common\Annotations\Annotation\Target;
|
|
|
|
/**
|
|
* Class OnSwooleEvent
|
|
* @Annotation
|
|
* @Target("METHOD")
|
|
* @package ZM\Annotation\Swoole
|
|
*/
|
|
class OnSwooleEvent extends OnSwooleEventBase
|
|
{
|
|
/**
|
|
* @var string
|
|
* @Required
|
|
*/
|
|
public $type;
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getType(): string {
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* @param string $type
|
|
*/
|
|
public function setType(string $type) {
|
|
$this->type = $type;
|
|
}
|
|
}
|