| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class ObjectWithDataSet implements DataSetInterface |
||
| 14 | { |
||
| 15 | #[Required] |
||
| 16 | public string $name = ''; |
||
| 17 | |||
| 18 | #[Number(min: 21)] |
||
| 19 | protected int $age = 17; |
||
| 20 | |||
| 21 | #[Number(max: 100)] |
||
| 22 | private int $number = 42; |
||
|
|
|||
| 23 | |||
| 24 | public function getAttributeValue(string $attribute): mixed |
||
| 25 | { |
||
| 26 | return $this->getData()[$attribute] ?? null; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getData(): ?array |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getSource(): self |
||
| 37 | } |
||
| 38 | |||
| 39 | public function hasAttribute(string $attribute): bool |
||
| 44 |