| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ParametersMapper |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Map a list of parameters to properties of the given object. |
||
| 13 | * |
||
| 14 | * @param object $data Data use to fill parameters |
||
| 15 | * @param array<int, string> $routeParameters The list of the parameter names to map |
||
| 16 | * |
||
| 17 | * @return array<string, string> Mapped parameters |
||
| 18 | */ |
||
| 19 | public function map(object $data, array $routeParameters = []): array |
||
| 31 |