| Total Complexity | 4 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class SingleValueDataSet implements DataSetInterface |
||
| 13 | { |
||
| 14 | 507 | public function __construct(private mixed $value) |
|
| 15 | { |
||
| 16 | } |
||
| 17 | |||
| 18 | 2 | public function getAttributeValue(string $attribute): mixed |
|
| 19 | { |
||
| 20 | 2 | return null; |
|
| 21 | } |
||
| 22 | |||
| 23 | 507 | public function getData(): mixed |
|
| 24 | { |
||
| 25 | 507 | return $this->value; |
|
| 26 | } |
||
| 27 | |||
| 28 | 2 | public function hasAttribute(string $attribute): bool |
|
| 31 | } |
||
| 32 | } |
||
| 33 |