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