1 | <?php |
||
18 | class ArrayHelper extends BaseArrayHelper |
||
19 | { |
||
20 | /** |
||
21 | * This class should not be instantiate. |
||
22 | */ |
||
23 | private function __construct() |
||
26 | |||
27 | /** |
||
28 | * Returns next key of element in array. |
||
29 | * |
||
30 | * @param int|string $currentKey |
||
31 | * @param array $array |
||
32 | * @return int|string|null Returns null if element with current key was last. |
||
33 | */ |
||
34 | public static function nextKey($currentKey, array $array) |
||
46 | |||
47 | /** |
||
48 | * Returns prev key of element in array. |
||
49 | * |
||
50 | * @param int|string $currentKey |
||
51 | * @param array $array |
||
52 | * @return int|string|null Returns null if element with current key was first. |
||
53 | */ |
||
54 | public static function prevKey($currentKey, array $array) |
||
66 | } |
||
67 |