| Total Complexity | 6 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class TypeMapper implements Mapper |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var Type[] map where return variable name maps to Type |
||
| 21 | */ |
||
| 22 | private array $types; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param Type[] $types map where return variable name maps to Type |
||
| 26 | */ |
||
| 27 | 1 | public function __construct(array $types) |
|
| 28 | { |
||
| 29 | 1 | $this->types = $types; |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritDoc |
||
| 34 | */ |
||
| 35 | 1 | public function map(array $record_set): array|Traversable |
|
| 51 | } |
||
| 52 | } |
||
| 54 |