| Total Complexity | 6 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class RulesProvidedDataSet implements RulesProviderInterface, DataSetInterface |
||
| 13 | { |
||
| 14 | public function __construct(private array $data, private array $rules) |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getAttributeValue(string $attribute): mixed |
||
| 19 | { |
||
| 20 | return $this->data[$attribute] ?? null; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getRules(): iterable |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getData(): ?array |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getSource(): array |
||
| 36 | } |
||
| 37 | |||
| 38 | public function hasAttribute(string $attribute): bool |
||
| 43 |