OtpFacade::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 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * @copyright 2018 Hilmi Erdem KEREN
5
 * @license MIT
6
 */
7
8
namespace Erdemkeren\Otp;
9
10
use Illuminate\Support\Facades\Facade;
11
12
/**
13
 * Class OtpFacade.
14
 *
15
 * @method static setPasswordGenerator(string $name): void
16
 * @method static check($authenticableId, string $token): bool
17
 * @method static addPasswordGenerator(string $name, $generator): void
18
 * @method static create($authenticatableId, ?int $length = null): TokenInterface
19
 * @method static retrieveByPlainText($authenticableId, string $plainText): ?TokenInterface
20
 * @method static retrieveByCipherText($authenticableId, string $cipherText): ?TokenInterface
21
 */
22
class OtpFacade extends Facade
23
{
24
    /**
25
     * Get the registered name of the component.
26
     *
27
     * @return string
28
     */
29 1
    protected static function getFacadeAccessor()
30
    {
31 1
        return 'otp';
32
    }
33
}
34