| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function __call(string $shortcut, array $params=[]) |
||
| 27 | { |
||
| 28 | $class = str_replace('Provider','Service',static::class).'\\' . Str::studly($shortcut); |
||
| 29 | if(!class_exists($class)){ |
||
| 30 | throw new TException("Chinaums:{$class}类不存在"); |
||
| 31 | } |
||
| 32 | |||
| 33 | return new $class($this->config,$params); |
||
| 34 | } |
||
| 62 |