Hashid::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
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace ElfSundae\Laravel\Hashid\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
7
/**
8
 * @method static \ElfSundae\Laravel\Hashid\DriverInterface connection(?string $name = null)
9
 * @method static \ElfSundae\Laravel\Hashid\DriverInterface driver(?string $name = null)
10
 * @method static string getDefaultConnection()
11
 * @method static \ElfSundae\Laravel\Hashid\HashidManager setDefaultConnection(string $name)
12
 * @method static mixed encode(mixed $data)
13
 * @method static mixed decode(mixed $data)
14
 *
15
 * @see \ElfSundae\Laravel\Hashid\HashidManager
16
 * @see \ElfSundae\Laravel\Hashid\DriverInterface
17
 */
18
class Hashid extends Facade
19
{
20
    /**
21
     * Get the registered name of the component.
22
     *
23
     * @return string
24
     */
25 4
    protected static function getFacadeAccessor()
26
    {
27 4
        return 'hashid';
28
    }
29
}
30