Total Complexity | 5 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | trait Iterator |
||
9 | { |
||
10 | /** |
||
11 | * @var Model |
||
12 | */ |
||
13 | protected Model $config; |
||
14 | |||
15 | /** |
||
16 | * @return mixed |
||
17 | */ |
||
18 | 53 | function current() |
|
19 | { |
||
20 | 53 | return $this->config->current(); |
|
21 | } |
||
22 | |||
23 | /** |
||
24 | * @return int|string|null |
||
25 | */ |
||
26 | 9 | function key() |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * |
||
33 | */ |
||
34 | 39 | function next() : void |
|
37 | 39 | } |
|
38 | |||
39 | /** |
||
40 | * |
||
41 | */ |
||
42 | 43 | function rewind() : void |
|
43 | { |
||
44 | 43 | $this->config->rewind(); |
|
45 | 43 | } |
|
46 | |||
47 | /** |
||
48 | * @return bool |
||
49 | */ |
||
50 | 31 | function valid() : bool |
|
53 | } |
||
54 | } |
||
55 |