Arrayable::getFacadeAccessor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
/*
3
 * This file is part of the "andrey-helldar/support" project.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @author Andrey Helldar <[email protected]>
9
 *
10
 * @copyright 2021 Andrey Helldar
11
 *
12
 * @license MIT
13
 *
14
 * @see https://github.com/andrey-helldar/support
15
 */
16
17
namespace Helldar\Support\Facades\Helpers\Ables;
18
19
use ArrayAccess;
20
use Helldar\Support\Facades\Facade;
21
use Helldar\Support\Helpers\Ables\Arrayable as Helper;
22
23
/**
24
 * @method static array get()
25
 * @method static Helper addUnique($values)
26
 * @method static Helper dump()
27
 * @method static Helper except(array|callable|string $keys)
28
 * @method static Helper filter(callable $callback = null, int $mode = 0)
29
 * @method static Helper flatten(bool $ignore_keys = true)
30
 * @method static Helper flip()
31
 * @method static Helper keys()
32
 * @method static Helper ksort(callable $callback = null)
33
 * @method static Helper map(callable $callback, bool $recursive = false)
34
 * @method static Helper merge(...$arrays)
35
 * @method static Helper of(array|ArrayAccess|object|string|null $value = [])
36
 * @method static Helper only(array|callable|string $keys)
37
 * @method static Helper push(...$values)
38
 * @method static Helper remove($key)
39
 * @method static Helper renameKeys(callable $callback)
40
 * @method static Helper renameKeysMap(array $map)
41
 * @method static Helper set($key, $value = null)
42
 * @method static Helper sort(callable $callback = null)
43
 * @method static Helper sortByKeys(array $sorter)
44
 * @method static Helper tap(callable $callback)
45
 * @method static Helper toArray()
46
 * @method static Helper unique(int $flags = SORT_STRING)
47
 * @method static Helper values()
48
 * @method static void dd()
49
 */
50
class Arrayable extends Facade
51
{
52 216
    protected static function getFacadeAccessor()
53
    {
54 216
        return Helper::class;
55
    }
56
}
57