| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class RecordMapper implements Mapper |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var callable(array<string,mixed>):array<string,mixed> |
||
| 15 | */ |
||
| 16 | private $mapper; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param callable(array<string,mixed>):array<string,mixed> $mapper function (array $record_set): array |
||
| 20 | */ |
||
| 21 | 1 | public function __construct(callable $mapper) |
|
| 22 | { |
||
| 23 | 1 | $this->mapper = $mapper; |
|
| 24 | } |
||
| 25 | |||
| 26 | 1 | public function map(array $record_set): array|Traversable |
|
| 35 | } |
||
| 36 | } |
||
| 37 |