# ZM\Config\ZMConfig ## __construct ```php public function __construct(array $config_paths, string $environment): mixed ``` ### 描述 作者很懒,什么也没有说 ### 参数 | 名称 | 类型 | 描述 | | -------- | ---- | ----------- | | config_paths | array | | | environment | string | | ### 返回 | 类型 | 描述 | | ---- | ----------- | | mixed | | ## loadFiles ```php public function loadFiles(): void ``` ### 描述 作者很懒,什么也没有说 ### 返回 | 类型 | 描述 | | ---- | ----------- | | void | | ## merge ```php public function merge(string $key, array $config): void ``` ### 描述 作者很懒,什么也没有说 ### 参数 | 名称 | 类型 | 描述 | | -------- | ---- | ----------- | | key | string | | | config | array | | ### 返回 | 类型 | 描述 | | ---- | ----------- | | void | | ## get ```php public function get(string $key, mixed $default): mixed ``` ### 描述 作者很懒,什么也没有说 ### 参数 | 名称 | 类型 | 描述 | | -------- | ---- | ----------- | | key | string | | | default | mixed | | ### 返回 | 类型 | 描述 | | ---- | ----------- | | mixed | | ## set ```php public function set(mixed $key, mixed $value): void ``` ### 描述 作者很懒,什么也没有说 ### 参数 | 名称 | 类型 | 描述 | | -------- | ---- | ----------- | | key | mixed | | | value | mixed | | ### 返回 | 类型 | 描述 | | ---- | ----------- | | void | | ## addConfigPath ```php public function addConfigPath(string $path): void ``` ### 描述 作者很懒,什么也没有说 ### 参数 | 名称 | 类型 | 描述 | | -------- | ---- | ----------- | | path | string | | ### 返回 | 类型 | 描述 | | ---- | ----------- | | void | | ## getEnvironment ```php public function getEnvironment(): string ``` ### 描述 作者很懒,什么也没有说 ### 返回 | 类型 | 描述 | | ---- | ----------- | | string | | ## setEnvironment ```php public function setEnvironment(string $environment): void ``` ### 描述 作者很懒,什么也没有说 ### 参数 | 名称 | 类型 | 描述 | | -------- | ---- | ----------- | | environment | string | | ### 返回 | 类型 | 描述 | | ---- | ----------- | | void | | ## reload ```php public function reload(): void ``` ### 描述 作者很懒,什么也没有说 ### 返回 | 类型 | 描述 | | ---- | ----------- | | void | | ## getHolder ```php public function getHolder(): OneBot\Config\Config ``` ### 描述 作者很懒,什么也没有说 ### 返回 | 类型 | 描述 | | ---- | ----------- | | OneBot\Config\Config | | ## getTrace ```php public function getTrace(string $key): string ``` ### 描述 作者很懒,什么也没有说 ### 参数 | 名称 | 类型 | 描述 | | -------- | ---- | ----------- | | key | string | | ### 返回 | 类型 | 描述 | | ---- | ----------- | | string | | ## getFileMeta ```php public function getFileMeta(string $name): array ``` ### 描述 作者很懒,什么也没有说 ### 参数 | 名称 | 类型 | 描述 | | -------- | ---- | ----------- | | name | string | | ### 返回 | 类型 | 描述 | | ---- | ----------- | | array | | ## getFileLoadType ```php public function getFileLoadType(string $name): string ``` ### 描述 作者很懒,什么也没有说 ### 参数 | 名称 | 类型 | 描述 | | -------- | ---- | ----------- | | name | string | | ### 返回 | 类型 | 描述 | | ---- | ----------- | | string | | ## shouldLoadFile ```php public function shouldLoadFile(string $path): bool ``` ### 描述 作者很懒,什么也没有说 ### 参数 | 名称 | 类型 | 描述 | | -------- | ---- | ----------- | | path | string | | ### 返回 | 类型 | 描述 | | ---- | ----------- | | bool | | ## loadConfigFromPath ```php public function loadConfigFromPath(string $path): void ``` ### 描述 作者很懒,什么也没有说 ### 参数 | 名称 | 类型 | 描述 | | -------- | ---- | ----------- | | path | string | | ### 返回 | 类型 | 描述 | | ---- | ----------- | | void | | ## getInstance ```php public function getInstance(mixed $args): object ``` ### 描述 作者很懒,什么也没有说 ### 参数 | 名称 | 类型 | 描述 | | -------- | ---- | ----------- | | args | mixed | | ### 返回 | 类型 | 描述 | | ---- | ----------- | | object | |