None::authenticate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * Micro
7
 *
8
 * @copyright   Copryright (c) 2015-2018 gyselroth GmbH (https://gyselroth.com)
9
 * @license     MIT https://opensource.org/licenses/MIT
10
 */
11
12
namespace Micro\Auth\Adapter;
13
14
class None extends AbstractAdapter
15
{
16
    /**
17
     * Authenticate.
18
     *
19
     * @return bool
20
     */
21
    public function authenticate(): bool
22
    {
23
        return true;
24
    }
25
26
    /**
27
     * Get identifier.
28
     *
29
     * @return string
30
     */
31
    public function getIdentifier(): string
32
    {
33
        return '';
34
    }
35
36
    /**
37
     * Get attributes.
38
     *
39
     * @return array
40
     */
41
    public function getAttributes(): array
42
    {
43
        return [];
44
    }
45
}
46