Completed
Push — master ( a51466...8daf75 )
by Raffael
02:47
created

None   A

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
 * @copyright Copyright (c) 2017 gyselroth GmbH (https://gyselroth.com)
8
 * @license   MIT https://opensource.org/licenses/MIT
9
 */
10
11
namespace Micro\Auth\Adapter;
12
13
use \Psr\Log\LoggerInterface as Logger;
14
15
class None extends AbstractAdapter
16
{
17
    /**
18
     * Authenticate
19
     *
20
     * @return bool
21
     */
22
    public function authenticate(): bool
23
    {
24
        return true;
25
    }
26
27
28
    /**
29
     * Get identifier
30
     *
31
     * @return string 
32
     */
33
    public function getIdentifier(): string
34
    {
35
        return '';
36
    }
37
38
39
    /**
40
     * Get attributes
41
     *
42
     * @return array
43
     */
44
    public function getAttributes(): array
45
    {
46
        return [];
47
    }
48
}
49