Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 9 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
7 | class ArrayHelpers |
||
8 | { |
||
9 | /** |
||
10 | * Instantiate a `ArrayUtility` instance by passing an $array to the constructor. |
||
11 | * |
||
12 | * @param array $array |
||
13 | * @return ArrayUtility |
||
14 | */ |
||
15 | public static function from(array $array): ArrayUtility |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * Instantiate a `ArrayUtility` instance by passing multiple $arrays to the constructor to be merged. |
||
22 | * |
||
23 | * @param mixed ...$arrays |
||
24 | * @return ArrayUtility |
||
25 | */ |
||
26 | public static function fromMerge(...$arrays): ArrayUtility |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Sum the values of two arrays. |
||
33 | * |
||
34 | * @param array $arrays |
||
35 | * @return array |
||
36 | */ |
||
37 | public static function sum(...$arrays): array |
||
54 |