mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 23:55:35 +08:00
update api docs
This commit is contained in:
committed by
github-actions[bot]
parent
53c1c0103c
commit
e83a169fd6
@@ -20,7 +20,7 @@ public function restoreDirectory(): mixed
|
||||
## get
|
||||
|
||||
```php
|
||||
public function get(mixed $additional_key, string $name): null|array|false|mixed
|
||||
public function get(string $name, mixed $additional_key): mixed
|
||||
```
|
||||
|
||||
### 描述
|
||||
@@ -31,20 +31,44 @@ public function get(mixed $additional_key, string $name): null|array|false|mixed
|
||||
|
||||
| 名称 | 类型 | 描述 |
|
||||
| -------- | ---- | ----------- |
|
||||
| additional_key | mixed | |
|
||||
| name | string | |
|
||||
| additional_key | mixed | |
|
||||
|
||||
### 返回
|
||||
|
||||
| 类型 | 描述 |
|
||||
| ---- | ----------- |
|
||||
| null|array|false|mixed | |
|
||||
| mixed | |
|
||||
|
||||
|
||||
## smartPatch
|
||||
|
||||
```php
|
||||
public function smartPatch(mixed $data, mixed $patch): mixed
|
||||
```
|
||||
|
||||
### 描述
|
||||
|
||||
作者很懒,什么也没有说
|
||||
|
||||
### 参数
|
||||
|
||||
| 名称 | 类型 | 描述 |
|
||||
| -------- | ---- | ----------- |
|
||||
| data | mixed | |
|
||||
| patch | mixed | |
|
||||
|
||||
### 返回
|
||||
|
||||
| 类型 | 描述 |
|
||||
| ---- | ----------- |
|
||||
| mixed | |
|
||||
|
||||
|
||||
## loadConfig
|
||||
|
||||
```php
|
||||
public function loadConfig(string $name): array|int|string
|
||||
public function loadConfig(string $name): mixed
|
||||
```
|
||||
|
||||
### 描述
|
||||
@@ -61,7 +85,7 @@ public function loadConfig(string $name): array|int|string
|
||||
|
||||
| 类型 | 描述 |
|
||||
| ---- | ----------- |
|
||||
| array|int|string | |
|
||||
| mixed | |
|
||||
|
||||
|
||||
## parseList
|
||||
@@ -72,7 +96,7 @@ public function parseList(string $name): void
|
||||
|
||||
### 描述
|
||||
|
||||
通过名称将所有该名称的配置文件路径和信息读取到列表中
|
||||
作者很懒,什么也没有说
|
||||
|
||||
### 参数
|
||||
|
||||
@@ -90,7 +114,7 @@ public function parseList(string $name): void
|
||||
## readConfigFromFile
|
||||
|
||||
```php
|
||||
public function readConfigFromFile(mixed $filename, mixed $ext_name): mixed
|
||||
public function readConfigFromFile(mixed $filename, mixed $ext_name): array
|
||||
```
|
||||
|
||||
### 描述
|
||||
@@ -108,4 +132,4 @@ public function readConfigFromFile(mixed $filename, mixed $ext_name): mixed
|
||||
|
||||
| 类型 | 描述 |
|
||||
| ---- | ----------- |
|
||||
| mixed | |
|
||||
| array | |
|
||||
|
||||
Reference in New Issue
Block a user