| @@ 110-119 (lines=10) @@ | ||
| 107 | * @return Partition[] |
|
| 108 | * An array of partitions. |
|
| 109 | */ |
|
| 110 | public function getPartitions() |
|
| 111 | { |
|
| 112 | $data = array(); |
|
| 113 | $clone = clone $this; |
|
| 114 | ||
| 115 | for ($clone->top(); $clone->valid(); $clone->next()) { |
|
| 116 | $data[] = $clone->current(); |
|
| 117 | } |
|
| 118 | ||
| 119 | return $data; |
|
| 120 | } |
|
| 121 | ||
| 122 | /** |
|
| @@ 68-77 (lines=10) @@ | ||
| 65 | /** |
|
| 66 | * @return Subset[] |
|
| 67 | */ |
|
| 68 | public function getSubsets() |
|
| 69 | { |
|
| 70 | $data = array(); |
|
| 71 | $clone = clone $this; |
|
| 72 | ||
| 73 | for ($clone->top(); $clone->valid(); $clone->next()) { |
|
| 74 | $data[] = $clone->current(); |
|
| 75 | } |
|
| 76 | ||
| 77 | return $data; |
|
| 78 | } |
|
| 79 | ||
| 80 | /** |
|