| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | private function getParameter(Container $container, Argument $argument) |
||
| 49 | { |
||
| 50 | $this->bindInjectionPoint($container, $argument); |
||
| 51 | try { |
||
| 52 | return $container->getDependency((string) $argument); |
||
| 53 | 38 | } catch (Unbound $e) { |
|
| 54 | if ($argument->isDefaultAvailable()) { |
||
| 55 | 38 | return $argument->getDefaultValue(); |
|
| 56 | } |
||
| 57 | 38 | ||
| 58 | 13 | throw new Unbound($argument->getMeta(), 0, $e); |
|
| 59 | 13 | } |
|
| 60 | 13 | } |
|
| 61 | 7 | ||
| 71 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.