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