| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 6 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 25 | public function __call($method = '', $parameters = []) |
|
| 24 | { |
||
| 25 | 25 | if (isset($this->customServices[$method])) { |
|
| 26 | 13 | return $this->customServices[$method]; |
|
| 27 | } |
||
| 28 | |||
| 29 | 25 | $docBlockResolver = DocBlockResolver::fromCaller($this); |
|
| 30 | 25 | $resolvable = $docBlockResolver->getDocBlockResolvable($method); |
|
| 31 | |||
| 32 | 23 | $this->customServices[$method] = (new DocBlockServiceResolver($resolvable->resolvableType())) |
|
| 33 | 23 | ->resolve($resolvable->className()); |
|
| 34 | |||
| 35 | 23 | return $this->customServices[$method]; |
|
| 36 | } |
||
| 38 |