Passed
Push — master ( 28681b...9bc4d1 )
by Pierre
03:09
created

Config::auth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace App\Component\Auth\Adapters;
4
5
use Nymfonya\Component\Container;
6
use App\Component\Auth\AdapterInterface;
7
8
class Config implements AdapterInterface
9
{
10
11
    /**
12
     * container
13
     *
14
     * @var Container
15
     */
16
    protected $container;
17
18
    /**
19
     * instanciate
20
     *
21
     * @param Container $container
22
     */
23 2
    public function __construct(Container $container)
24
    {
25 2
        $this->container = $container;
26
    }
27
28
    /**
29
     * auth process
30
     *
31
     * @return array
32
     */
33 1
    public function auth(string $login, string $password): array
34
    {
35 1
        return [];
36
    }
37
}
38