| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function __call(string $name, array $arguments = []): ?object |
||
| 15 | { |
||
| 16 | $resolvableType = lcfirst(ltrim($name, 'get')); |
||
| 17 | |||
| 18 | if (!isset($this->customServices[$resolvableType])) { |
||
| 19 | $className = $this->servicesMapping()[$resolvableType]; |
||
| 20 | |||
| 21 | $this->customServices[$resolvableType] = (new CustomServiceResolver($resolvableType)) |
||
| 22 | ->resolve($className); |
||
| 23 | } |
||
| 24 | |||
| 25 | return $this->customServices[$resolvableType]; |
||
| 26 | } |
||
| 33 |