Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class BatchMapper implements Mapper |
||
12 | { |
||
13 | /** |
||
14 | * @var callable(array<array<string,mixed>>):iterable<array<string,mixed>> |
||
15 | */ |
||
16 | private $mapper; |
||
17 | |||
18 | /** |
||
19 | * @param callable(array<array<string,mixed>>):iterable<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 |
|
29 | } |
||
30 | } |
||
31 |