Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class SimpleArrayRow implements IRow |
||
14 | { |
||
15 | /** @var array<int|string, int|string|float|bool|null> */ |
||
16 | protected array $array; |
||
17 | |||
18 | /** |
||
19 | * @param array<int|string, int|string|float|bool|null> $array |
||
20 | */ |
||
21 | 18 | public function __construct(array $array) |
|
22 | { |
||
23 | 18 | $this->array = $array; |
|
24 | 18 | } |
|
25 | |||
26 | 17 | public function getValue($property) |
|
27 | { |
||
28 | 17 | return $this->array[$property]; |
|
29 | } |
||
30 | |||
31 | 3 | public function __isset($name) |
|
34 | } |
||
35 | } |
||
36 |