Completed
Push — master ( a968e3...284ab6 )
by Pierre
03:16
created

Repository::auth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

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 0
cts 2
cp 0
crap 2
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 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
    public function __construct(Container $container)
24
    {
25
        $this->container = $container;
26
    }
27
28
    /**
29
     * auth process
30
     *
31
     * @return array
32
     */
33
    public function auth(string $login, string $password): array
34
    {
35
        return [];
36
    }
37
}
38