Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait Iterator |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @inheritdoc |
||
10 | */ |
||
11 | 4 | public function current() |
|
12 | { |
||
13 | 4 | return current($this->data); |
|
14 | } |
||
15 | |||
16 | /** |
||
17 | * @inheritdoc |
||
18 | */ |
||
19 | 4 | public function next() |
|
22 | } |
||
23 | |||
24 | /** |
||
25 | * @inheritdoc |
||
26 | */ |
||
27 | 5 | public function key() |
|
28 | { |
||
29 | 5 | return key($this->data); |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | 4 | public function valid() |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | 4 | public function rewind() |
|
49 |