| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class RosfinCheck implements IteratorAggregate, Countable |
||
| 13 | { |
||
| 14 | private $data; |
||
| 15 | |||
| 16 | public static function fromArray(array $data): self |
||
| 17 | { |
||
| 18 | return new self($data); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function count(): int |
||
| 22 | { |
||
| 23 | return count($this->data); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getIterator(): Iterator |
||
| 29 | } |
||
| 30 | |||
| 31 | public function toArray(): array |
||
| 32 | { |
||
| 33 | return $this->data; |
||
| 34 | } |
||
| 35 | |||
| 36 | private function __construct(array $data) |
||
| 39 | } |
||
| 40 | } |
||
| 41 |