DummyStateStorage   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 14
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A get() 0 3 1
A remove() 0 2 1
A set() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\AuthClient\StateStorage;
6
7
class DummyStateStorage implements StateStorageInterface
8
{
9
    public function set(string $key, $value): void
10
    {
11
        // do nothing
12
    }
13
14
    public function get($key)
15
    {
16
        return null;
17
    }
18
19
    public function remove($key): void
20
    {
21
        // do nothing
22
    }
23
}
24