Total Complexity | 4 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class ArrayDataSet implements DataSetInterface |
||
12 | { |
||
13 | 586 | public function __construct(private array $data = []) |
|
15 | } |
||
16 | |||
17 | 51 | public function getAttributeValue(string $attribute): mixed |
|
18 | { |
||
19 | 51 | return $this->data[$attribute] ?? null; |
|
20 | } |
||
21 | |||
22 | 11 | public function getData(): array |
|
25 | } |
||
26 | |||
27 | 61 | public function hasAttribute(string $attribute): bool |
|
30 | } |
||
31 | } |
||
32 |