智简魔方文档

模块是否有某个方法

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\logic\ModuleLogic::moduleMethodExist
所属业务公共接口
来源模块/系统模块逻辑

功能说明

模块是否有某个方法

调用示例

$module = 'string';
$method = 'string';
$result = (new \app\common\logic\ModuleLogic())->moduleMethodExist($module, $method);

参数

参数类型必填默认值校验规则说明
modulestringrequire模块
methodstringrequire方法名称

返回值

返回项类型说明
返回值bool

正常返回

{}

异常情况

异常类型说明
Throwable调用失败时由具体实现抛出异常,异常信息以运行时结果为准。