mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-07 16:55:35 +08:00
38 lines
707 B
PHP
38 lines
707 B
PHP
<?php
|
|
|
|
|
|
namespace ZM\Annotation\CQ;
|
|
|
|
use Doctrine\Common\Annotations\Annotation\Required;
|
|
use Doctrine\Common\Annotations\Annotation\Target;
|
|
use ZM\Annotation\AnnotationBase;
|
|
use ZM\Annotation\Interfaces\Level;
|
|
|
|
/**
|
|
* Class CQMetaEvent
|
|
* @Annotation
|
|
* @Target("ALL")
|
|
* @package ZM\Annotation\CQ
|
|
*/
|
|
class CQMetaEvent extends AnnotationBase implements Level
|
|
{
|
|
/**
|
|
* @var string
|
|
* @Required()
|
|
*/
|
|
public $meta_event_type = '';
|
|
/** @var int */
|
|
public $level;
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getLevel() { return $this->level; }
|
|
|
|
/**
|
|
* @param int $level
|
|
*/
|
|
public function setLevel(int $level) {
|
|
$this->level = $level;
|
|
}
|
|
} |