| Conditions | 3 |
| Paths | 4 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 6 | public function getName(ReflectionParameter $parameter, array $annotations): string |
|
| 17 | { |
||
| 18 | 6 | $result = $parameter->getClass() === null ? $parameter->name : $parameter->getClass()->name; |
|
| 19 | 6 | if (array_key_exists($result, $annotations)) { |
|
| 20 | 3 | $result = $annotations[$result]; |
|
| 21 | } |
||
| 22 | 6 | return $result; |
|
| 23 | } |
||
| 25 |