Passed
Push — master ( ced451...069cb4 )
by Hilmi Erdem
04:47 queued 45s
created

OtpFacade   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 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