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

Repository   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 28
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A auth() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace App\Component\Auth\Adapters;
4
5
use Nymfonya\Component\Container;
6
use App\Component\Auth\AdapterInterface;
7
8
class Repository 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