2020-03-02 16:14:20 +08:00
|
|
|
<?php
|
|
|
|
|
|
2022-03-15 18:05:33 +08:00
|
|
|
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 = '';
|
2022-03-15 18:05:33 +08:00
|
|
|
|
2020-03-02 16:14:20 +08:00
|
|
|
/** @var int */
|
|
|
|
|
public $level;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
2022-03-15 18:05:33 +08:00
|
|
|
public function getLevel(): int
|
|
|
|
|
{
|
|
|
|
|
return $this->level;
|
|
|
|
|
}
|
2020-03-02 16:14:20 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param int $level
|
|
|
|
|
*/
|
2022-03-15 18:05:33 +08:00
|
|
|
public function setLevel($level)
|
|
|
|
|
{
|
2020-03-02 16:14:20 +08:00
|
|
|
$this->level = $level;
|
|
|
|
|
}
|
2022-03-15 18:05:33 +08:00
|
|
|
}
|