| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | public function request(string $service, string $type, ...$arg) |
||
| 54 | { |
||
| 55 | $serviceClass = $this->getClass($service); |
||
| 56 | |||
| 57 | if (!\class_exists($serviceClass)) { |
||
| 58 | throw new \Exception("class $serviceClass not exists"); |
||
| 59 | } |
||
| 60 | |||
| 61 | $service = new $serviceClass($this->getClient()); |
||
| 62 | |||
| 63 | return $service->$type(...$arg); |
||
| 64 | } |
||
| 78 |