class InspectCommand extends Command

检查代码规则

Traits

Key 解析器 解析 key 字串到 namespace, group 和 item.

Properties

protected array $keyParserCache

解析的缓存存储 这里的命名方式, 因为是在 trait 中使用 所以这里的缓存的命名前面加上了 trait 的前缀 keyParser

from  KeyParserTrait
protected string $signature

The name and signature of the console command.

protected string $description

The console command description.

Methods

setParsedKey(string $key, array $parsed)

根据 key 设置值

bool
keyParserMatch(string $key)

Check Key valid

array
parseKey(string $key)

解析 key 至 namespace, group, and item.

array
keyParserParseBasicSegments(array $segments)

解析数值中的基本片段并且返回可用的数组

array
keyParserParseSegments(string $key)

解析一系列命名空间的片段

coreModule()

获取核心的模块

void
handle()

Execute the console command.

Details

in KeyParserTrait at line 27
KeyParserTrait setParsedKey(string $key, array $parsed)

根据 key 设置值

Parameters

string $key key
array $parsed parsed

Return Value

KeyParserTrait

in KeyParserTrait at line 38
bool keyParserMatch(string $key)

Check Key valid

Parameters

string $key key

Return Value

bool

in KeyParserTrait at line 52
array parseKey(string $key)

解析 key 至 namespace, group, and item.

Parameters

string $key key

Return Value

array

in KeyParserTrait at line 81
protected array keyParserParseBasicSegments(array $segments)

解析数值中的基本片段并且返回可用的数组

Parameters

array $segments segments

Return Value

array

in KeyParserTrait at line 103
protected array keyParserParseSegments(string $key)

解析一系列命名空间的片段

Parameters

string $key key

Return Value

array

in CoreTrait at line 16
ModuleManager coreModule()

获取核心的模块

Return Value

ModuleManager

in CoreTrait at line 25
PermissionManager corePermission()

权限管理

Return Value

PermissionManager

at line 58
void handle()

Execute the console command.

Return Value

void

Exceptions

ReflectionException