Total Complexity | 5 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class DataContext |
||
10 | { |
||
11 | 76 | public function __construct( |
|
12 | private ColumnInterface $column, |
||
13 | private array|object $data, |
||
14 | private mixed $key, |
||
15 | private int $index, |
||
16 | ) { |
||
17 | 76 | } |
|
18 | |||
19 | public function getColumn(): ColumnInterface |
||
20 | { |
||
21 | return $this->column; |
||
22 | } |
||
23 | |||
24 | 75 | public function getData(): array|object |
|
27 | } |
||
28 | |||
29 | 28 | public function getKey(): mixed |
|
30 | { |
||
31 | 28 | return $this->key; |
|
32 | } |
||
33 | |||
34 | 30 | public function getIndex(): int |
|
37 | } |
||
38 | } |
||
39 |