None::getAttributes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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