Passed
Push — master ( d309df...7ec489 )
by Petr
02:37
created

File   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace kalanis\kw_auth\Sources\Files\Storage;
4
5
6
use kalanis\kw_auth\Interfaces\IKATranslations;
7
use kalanis\kw_auth\Interfaces\IMode;
8
use kalanis\kw_auth\Sources\Files\AFile;
9
use kalanis\kw_locks\Interfaces\ILock;
10
use kalanis\kw_storage\Storage\Storage;
11
12
13
/**
14
 * Class File
15
 * @package kalanis\kw_auth\Sources\Files\Storage
16
 * Authenticate via single file
17
 */
18
class File extends AFile
19
{
20
    use TStorage;
21
22
    /**
23
     * @param Storage $storage where to save
24
     * @param IMode $mode hashing mode
25
     * @param ILock $lock file lock
26
     * @param string $path use full path with file name
27
     * @param IKATranslations|null $lang
28
     */
29 11
    public function __construct(Storage $storage, IMode $mode, ILock $lock, string $path, ?IKATranslations $lang = null)
30
    {
31 11
        $this->storage = $storage;
32 11
        parent::__construct($mode, $lock, $path, $lang);
33
    }
34
}
35