|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Helldar\Support\Facades\Helpers; |
|
4
|
|
|
|
|
5
|
|
|
use Helldar\Support\Facades\BaseFacade; |
|
6
|
|
|
use Helldar\Support\Helpers\Arr as Helper; |
|
7
|
|
|
|
|
8
|
|
|
/** |
|
9
|
|
|
* @method static array addUnique(array $array, $values) |
|
10
|
|
|
* @method static array except(array $array, array|string $keys) |
|
11
|
|
|
* @method static array map(array $array, callable $callback) |
|
12
|
|
|
* @method static array merge(...$arrays) |
|
13
|
|
|
* @method static array only(array $array, array|string $keys) |
|
14
|
|
|
* @method static array renameKeys(array $array, callable $callback) |
|
15
|
|
|
* @method static array renameKeysMap(array $array, array $map) |
|
16
|
|
|
* @method static array sortByKeys(array $array, array $sorter) |
|
17
|
|
|
* @method static array toArray($value = null) |
|
18
|
|
|
* @method static array wrap($value = null) |
|
19
|
|
|
* @method static bool exists(array $array, $key) |
|
20
|
|
|
* @method static bool isArrayable($value = null) |
|
21
|
|
|
* @method static int longestStringLength(array $array) |
|
22
|
|
|
* @method static mixed get(array $array, $key, $default = null) |
|
23
|
|
|
* @method static mixed getKeyIfExist(array $array, $key, $default = null) |
|
24
|
|
|
* @method static void store(array $array, string $path, bool $is_json = false, bool $sort_keys = false) |
|
25
|
|
|
* @method static void storeAsArray(array $array, string $path, bool $sort_keys = false) |
|
26
|
|
|
* @method static void storeAsJson(array $array, string $path, bool $sort_keys = false) |
|
27
|
|
|
*/ |
|
28
|
|
|
final class Arr extends BaseFacade |
|
29
|
|
|
{ |
|
30
|
|
|
protected static function getFacadeAccessor() |
|
31
|
|
|
{ |
|
32
|
|
|
return Helper::class; |
|
33
|
|
|
} |
|
34
|
|
|
} |
|
35
|
|
|
|