src/PartitionContainer.php 1 location
|
@@ 121-129 (lines=9) @@
|
118 |
|
* @return mixed[] |
119 |
|
* The items. |
120 |
|
*/ |
121 |
|
public function getPartitionsItemsArray() { |
122 |
|
$data = array(); |
123 |
|
|
124 |
|
foreach ($this->getPartitions() as $subset) { |
125 |
|
$data[] = $subset->getRawItems(); |
126 |
|
} |
127 |
|
|
128 |
|
return array_values(array_filter($data)); |
129 |
|
} |
130 |
|
|
131 |
|
/** |
132 |
|
* Set the algorithm to use. |
src/SubsetContainer.php 1 location
|
@@ 77-85 (lines=9) @@
|
74 |
|
/** |
75 |
|
* @return array |
76 |
|
*/ |
77 |
|
public function getSubsetsAndItemsAsArray() { |
78 |
|
$data = array(); |
79 |
|
|
80 |
|
foreach ($this->getSubsets() as $subset) { |
81 |
|
$data[] = $subset->getRawItems(); |
82 |
|
} |
83 |
|
|
84 |
|
return array_values(array_filter($data)); |
85 |
|
} |
86 |
|
|
87 |
|
/** |
88 |
|
* @param \drupol\phpartition\BasePartitionAlgorithm $algo |