Total Complexity | 18 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class Arr |
||
8 | { |
||
9 | public static function accessible($value) |
||
10 | { |
||
11 | return is_array($value) || $value instanceof ArrayAccess; |
||
12 | } |
||
13 | |||
14 | public static function exists($array, $key) |
||
21 | } |
||
22 | |||
23 | public static function get($array, $key, $default = null) |
||
50 | } |
||
51 | |||
52 | public static function first($array, ?callable $callback = null, $default = null) |
||
71 | } |
||
72 | } |
||
73 |