Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class Map extends AColumn |
||
15 | { |
||
16 | /** @var array<string|int, float|int|string|bool|null> */ |
||
17 | protected array $map; |
||
18 | protected string $emptyValue = ''; |
||
19 | |||
20 | /** |
||
21 | * @param string|int $sourceName |
||
22 | * @param array<string|int, float|int|string|bool|null> $map |
||
23 | * @param string $emptyValue |
||
24 | */ |
||
25 | 3 | public function __construct($sourceName, array $map, string $emptyValue = '') |
|
26 | { |
||
27 | 3 | $this->sourceName = $sourceName; |
|
28 | 3 | $this->map = $map; |
|
29 | 3 | $this->emptyValue = $emptyValue; |
|
30 | 3 | } |
|
31 | |||
32 | 3 | public function getValue(IRow $source) |
|
42 | } |
||
43 | } |
||
45 |