2020-03-02 16:14:20 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace ZM\Annotation\CQ;
|
|
|
|
|
|
|
|
|
|
use Doctrine\Common\Annotations\Annotation\Target;
|
|
|
|
|
use ZM\Annotation\AnnotationBase;
|
|
|
|
|
use ZM\Annotation\Interfaces\Level;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class CQNotice
|
|
|
|
|
* @Annotation
|
|
|
|
|
* @Target("ALL")
|
|
|
|
|
* @package ZM\Annotation\CQ
|
|
|
|
|
*/
|
|
|
|
|
class CQNotice extends AnnotationBase implements Level
|
|
|
|
|
{
|
|
|
|
|
/** @var string */
|
|
|
|
|
public $notice_type = "";
|
|
|
|
|
/** @var string */
|
|
|
|
|
public $sub_type = "";
|
|
|
|
|
/** @var int */
|
|
|
|
|
public $group_id = 0;
|
|
|
|
|
/** @var int */
|
|
|
|
|
public $operator_id = 0;
|
|
|
|
|
/** @var int */
|
|
|
|
|
public $level = 20;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return int
|
|
|
|
|
*/
|
|
|
|
|
public function getLevel(): int {
|
|
|
|
|
return $this->level;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param int $level
|
|
|
|
|
*/
|
2020-03-05 12:03:14 +08:00
|
|
|
public function setLevel(int $level) {
|
2020-03-02 16:14:20 +08:00
|
|
|
$this->level = $level;
|
|
|
|
|
}
|
|
|
|
|
}
|