| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | public function map(object $data, array $routeParameters = []): array |
||
| 10 | { |
||
| 11 | $accessor = PropertyAccess::createPropertyAccessor(); |
||
| 12 | $mappedRouteParameters = []; |
||
| 13 | |||
| 14 | foreach ($routeParameters as $parameter => $requirements) { |
||
| 15 | $mappedRouteParameters[$parameter] = $accessor->getValue($data, (string)$parameter); |
||
| 16 | } |
||
| 17 | |||
| 18 | return $mappedRouteParameters; |
||
| 19 | } |
||
| 21 |