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