| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function resolve(string $methodName) : JsonRpcMethodInterface |
||
| 32 | { |
||
| 33 | $serviceName = $this->serviceNameResolver->resolve($methodName); |
||
| 34 | if (!$this->container->has($serviceName)) { |
||
| 35 | throw new JsonRpcMethodNotFoundException($methodName); |
||
| 36 | } |
||
| 37 | |||
| 38 | return $this->container->get($serviceName); |
||
| 39 | } |
||
| 41 |