1 | <?php |
||
12 | class Cycle extends Combinatorics implements \Iterator, \Countable { |
||
13 | |||
14 | /** |
||
15 | * The key. |
||
16 | * |
||
17 | * @var int |
||
18 | */ |
||
19 | protected $key = 0; |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | public function key() { |
||
27 | 1 | ||
28 | 1 | /** |
|
29 | 1 | * {@inheritdoc} |
|
30 | */ |
||
31 | public function current() { |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function next() { |
||
41 | 1 | ||
42 | 1 | /** |
|
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function rewind() { |
||
48 | 1 | ||
49 | 1 | /** |
|
50 | 1 | * {@inheritdoc} |
|
51 | */ |
||
52 | public function valid() { |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function count() { |
||
62 | |||
63 | } |
||
64 |