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