1 | <?php |
||
5 | class SubsetContainer extends \SplHeap { |
||
6 | |||
7 | /** |
||
8 | * @var BasePartitionAlgorithm |
||
9 | */ |
||
10 | protected $algo; |
||
11 | |||
12 | /** |
||
13 | * Override compare method. |
||
14 | * |
||
15 | * @param Subset $a |
||
16 | * @param Subset $b |
||
17 | * |
||
18 | * @return int |
||
19 | */ |
||
20 | public function compare($a, $b) { |
||
29 | |||
30 | /** |
||
31 | * @param $partition |
||
32 | */ |
||
33 | public function setPartition($partition) { |
||
40 | |||
41 | /** |
||
42 | * @param \drupol\phpartition\SubsetItem $item |
||
43 | */ |
||
44 | public function addItemToSubset(SubsetItem $item) { |
||
50 | |||
51 | /** |
||
52 | * @return Subset[] |
||
53 | */ |
||
54 | public function getSubsets() { |
||
64 | |||
65 | /** |
||
66 | * @return array |
||
67 | */ |
||
68 | public function getSubsetsAndItemsAsArray() { |
||
77 | |||
78 | /** |
||
79 | * @param \drupol\phpartition\BasePartitionAlgorithm $algo |
||
80 | */ |
||
81 | public function setAlgo(BasePartitionAlgorithm $algo) { |
||
84 | |||
85 | /** |
||
86 | * @return BasePartitionAlgorithm |
||
87 | */ |
||
88 | public function getAlgo() { |
||
91 | |||
92 | } |
||
93 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.