None   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 34
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A authenticate() 0 4 1
A getIdentifier() 0 4 1
A getAttributes() 0 4 1
1
<?php
2
declare(strict_types = 1);
3
4
/**
5
 * Micro
6
 *
7
 * @author    Raffael Sahli <[email protected]>
8
 * @copyright Copyright (c) 2017 gyselroth GmbH (https://gyselroth.com)
9
 * @license   MIT https://opensource.org/licenses/MIT
10
 */
11
12
namespace Micro\Auth\Adapter;
13
14
use \Psr\Log\LoggerInterface as Logger;
15
16
class None extends AbstractAdapter
17
{
18
    /**
19
     * Authenticate
20
     *
21
     * @return bool
22
     */
23
    public function authenticate(): bool
24
    {
25
        return true;
26
    }
27
28
29
    /**
30
     * Get identifier
31
     *
32
     * @return string
33
     */
34
    public function getIdentifier(): string
35
    {
36
        return '';
37
    }
38
39
40
    /**
41
     * Get attributes
42
     *
43
     * @return array
44
     */
45
    public function getAttributes(): array
46
    {
47
        return [];
48
    }
49
}
50