1 | <?php |
||
11 | class Cycle extends Combinatorics implements IteratorInterface |
||
12 | { |
||
13 | /** |
||
14 | * The key. |
||
15 | * |
||
16 | * @var int |
||
17 | */ |
||
18 | protected $key = 0; |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | 3 | public function current() |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 3 | public function next() |
|
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function rewind() |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function valid() |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | 3 | public function count() |
|
59 | } |
||
60 |