| 1 | <?php |
||
| 6 | class Dataset implements \Iterator, \Countable |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var array[] |
||
| 10 | */ |
||
| 11 | protected $data; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | protected $position; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var HypothesisInterface |
||
| 20 | */ |
||
| 21 | protected $hypothesis; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param array[] $data |
||
| 25 | */ |
||
| 26 | 2 | public function __construct( |
|
| 34 | |||
| 35 | 1 | public function first() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @return Result |
||
| 44 | */ |
||
| 45 | 2 | public function current() |
|
| 51 | |||
| 52 | 2 | public function next() |
|
| 56 | |||
| 57 | public function key() |
||
| 61 | |||
| 62 | 2 | public function valid() |
|
| 66 | |||
| 67 | 2 | public function rewind() |
|
| 71 | |||
| 72 | 2 | public function count() |
|
| 76 | |||
| 77 | /** |
||
| 78 | * @return HypothesisInterface |
||
| 79 | */ |
||
| 80 | 1 | public function getHypothesis() |
|
| 84 | |||
| 85 | } |