| 1 | <?php |
||
| 14 | class Combinations extends CombinationsIterator |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Alias of the get() method. |
||
| 18 | * |
||
| 19 | * @return \Generator |
||
| 20 | * The prime generator. |
||
| 21 | */ |
||
| 22 | public function generator() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Convert the generator into an array. |
||
| 29 | * |
||
| 30 | * @return array |
||
| 31 | * The elements. |
||
| 32 | */ |
||
| 33 | public function toArray() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * The generator. |
||
| 46 | * |
||
| 47 | * @param array $dataset |
||
| 48 | * The dataset. |
||
| 49 | * @param int $length |
||
| 50 | * The length. |
||
| 51 | * |
||
| 52 | * @codingStandardsIgnoreStart |
||
| 53 | * @return \Generator |
||
| 54 | * @codingStandardsIgnoreEnd |
||
| 55 | */ |
||
| 56 | protected function get(array $dataset, $length) |
||
| 73 | } |
||
| 74 |