Files
zhamao-framework/src/ZM/Annotation/CQ/CQMetaEvent.php

44 lines
726 B
PHP
Raw Normal View History

2020-03-02 16:14:20 +08:00
<?php
declare(strict_types=1);
2020-03-02 16:14:20 +08:00
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")
*/
class CQMetaEvent extends AnnotationBase implements Level
{
/**
* @var string
* @Required()
*/
public $meta_event_type = '';
2020-03-02 16:14:20 +08:00
/** @var int */
public $level;
/**
* @return mixed
*/
public function getLevel(): int
{
return $this->level;
}
2020-03-02 16:14:20 +08:00
/**
* @param int $level
*/
public function setLevel($level)
{
2020-03-02 16:14:20 +08:00
$this->level = $level;
}
}