1 | <?php |
||
12 | class ChargesGrouper |
||
13 | { |
||
14 | /** |
||
15 | * @var Charge[] |
||
16 | */ |
||
17 | private $charges; |
||
18 | |||
19 | /** |
||
20 | * ChargesGrouper constructor. |
||
21 | * @param Charge[] $charges |
||
22 | */ |
||
23 | public function __construct(array $charges) |
||
27 | |||
28 | /** |
||
29 | * @return array of two elements: |
||
30 | * 0: common_object_id => common_object_id, common_object_name |
||
31 | * 1: common_object_id => array Charge[][] by common_object_id |
||
32 | */ |
||
33 | public function group() |
||
48 | |||
49 | private function sortByServerName(): SortChain |
||
55 | } |
||
56 |