Client::store()   A
last analyzed

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 kalanis\UploadPerPartes\Target\Local\DrivingFile\Storage;
4
5
6
use kalanis\UploadPerPartes\Interfaces;
7
use kalanis\UploadPerPartes\Target\Local\DrivingFile;
8
use kalanis\UploadPerPartes\Traits\TLangInit;
9
10
11
/**
12
 * Class Client
13
 * @package kalanis\UploadPerPartes\Target\Local\DrivingFile\Storage
14
 * Storing driving file data at client in system data roundabout
15
 */
16
class Client implements Interfaces\IDrivingFile
17
{
18
    use TLangInit;
19
20 2
    public function exists(string $key): bool
21
    {
22 2
        return !empty($key);
23
    }
24
25 2
    public function store(string $key, string $data): string
26
    {
27 2
        return $data;
28
    }
29
30 2
    public function get(string $key): string
31
    {
32 2
        return $key;
33
    }
34
35 2
    public function remove(string $key): bool
36
    {
37 2
        return true;
38
    }
39
40 2
    public function checkKeyEncoder(DrivingFile\KeyEncoders\AEncoder $encoder): bool
41
    {
42
        // skip, key is ignored
43 2
        return true;
44
    }
45
}
46