mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-10 02:05:34 +08:00
add cs fixer and PHPStan and activate it (build 436)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZM\Annotation\CQ;
|
||||
|
||||
@@ -11,43 +12,55 @@ use ZM\Annotation\Interfaces\Level;
|
||||
* Class CQCommand
|
||||
* @Annotation
|
||||
* @Target("ALL")
|
||||
* @package ZM\Annotation\CQ
|
||||
*/
|
||||
class CQCommand extends AnnotationBase implements Level
|
||||
{
|
||||
/** @var string */
|
||||
public $match = "";
|
||||
public $match = '';
|
||||
|
||||
/** @var string */
|
||||
public $pattern = "";
|
||||
public $pattern = '';
|
||||
|
||||
/** @var string */
|
||||
public $regex = "";
|
||||
public $regex = '';
|
||||
|
||||
/** @var string */
|
||||
public $start_with = "";
|
||||
public $start_with = '';
|
||||
|
||||
/** @var string */
|
||||
public $end_with = "";
|
||||
public $end_with = '';
|
||||
|
||||
/** @var string */
|
||||
public $keyword = "";
|
||||
public $keyword = '';
|
||||
|
||||
/** @var string[] */
|
||||
public $alias = [];
|
||||
|
||||
/** @var string */
|
||||
public $message_type = "";
|
||||
public $message_type = '';
|
||||
|
||||
/** @var int */
|
||||
public $user_id = 0;
|
||||
|
||||
/** @var int */
|
||||
public $group_id = 0;
|
||||
|
||||
/** @var int */
|
||||
public $discuss_id = 0;
|
||||
|
||||
/** @var int */
|
||||
public $level = 20;
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getLevel(): int { return $this->level; }
|
||||
public function getLevel(): int
|
||||
{
|
||||
return $this->level;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $level
|
||||
*/
|
||||
public function setLevel($level) { $this->level = $level; }
|
||||
|
||||
public function setLevel($level)
|
||||
{
|
||||
$this->level = $level;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user