None   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 4
dl 0
loc 30
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A authenticate() 0 3 1
A getAttributes() 0 3 1
A getIdentifier() 0 3 1
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