Files
zhamao-framework/src/ZM/Annotation/Swoole/OnSwooleEvent.php

37 lines
602 B
PHP
Raw Normal View History

2020-03-02 16:14:20 +08:00
<?php
namespace ZM\Annotation\Swoole;
use Doctrine\Common\Annotations\Annotation\Required;
use Doctrine\Common\Annotations\Annotation\Target;
/**
2020-11-03 21:02:24 +08:00
* Class OnSwooleEvent
2020-03-02 16:14:20 +08:00
* @Annotation
* @Target("METHOD")
2020-03-02 16:14:20 +08:00
* @package ZM\Annotation\Swoole
*/
class OnSwooleEvent extends OnSwooleEventBase
2020-03-02 16:14:20 +08:00
{
/**
* @var string
* @Required
*/
public $type;
/**
* @return string
*/
public function getType(): string {
return $this->type;
}
/**
* @param string $type
*/
public function setType(string $type) {
2020-03-02 16:14:20 +08:00
$this->type = $type;
}
2020-09-29 15:07:43 +08:00
}