Files
zhamao-framework/src/ZM/Annotation/Swoole/OnSwooleEvent.php
jerry 6337b626d6 update to 2.1.0 version
add @OnCloseEvent, @OnOpenEvent, @OnMessageEvent, @OnRequestEvent
update EventDispatcher.php and change it to status-based schema
fix @CQBefore bugs
2021-01-02 13:15:50 +08:00

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;
}
}