mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-19 05:34:53 +08:00
35 lines
658 B
PHP
35 lines
658 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
|
||
|
|
namespace ZM\Annotation\CQ;
|
||
|
|
|
||
|
|
use Doctrine\Common\Annotations\Annotation\Target;
|
||
|
|
use ZM\Annotation\AnnotationBase;
|
||
|
|
use ZM\Annotation\Interfaces\Level;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Class CQCommand
|
||
|
|
* @Annotation
|
||
|
|
* @Target("ALL")
|
||
|
|
* @package ZM\Annotation\CQ
|
||
|
|
*/
|
||
|
|
class CQCommand extends AnnotationBase implements Level
|
||
|
|
{
|
||
|
|
/** @var string */
|
||
|
|
public $match = "";
|
||
|
|
/** @var string */
|
||
|
|
public $regexMatch = "";
|
||
|
|
/** @var int */
|
||
|
|
public $level = 20;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @return int
|
||
|
|
*/
|
||
|
|
public function getLevel(): int { return $this->level; }
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param int $level
|
||
|
|
*/
|
||
|
|
public function setLevel(int $level) { $this->level = $level; }
|
||
|
|
|
||
|
|
}
|