KeyValueStore   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 6
Bugs 2 Features 1
Metric Value
wmc 1
c 6
b 2
f 1
lcom 0
cbo 4
dl 0
loc 21
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php namespace AdammBalogh\KeyValueStore;
2
3
use AdammBalogh\KeyValueStore\Contract\AdapterInterface;
4
use AdammBalogh\KeyValueStore\Contract\KeyValueStoreInterface;
5
use AdammBalogh\KeyValueStore\Implementation\AdapterTrait;
6
use AdammBalogh\KeyValueStore\Implementation\KeyTrait;
7
use AdammBalogh\KeyValueStore\Implementation\ValueTrait;
8
use AdammBalogh\KeyValueStore\Implementation\ServerTrait;
9
10
class KeyValueStore implements KeyValueStoreInterface
11
{
12
    use AdapterTrait, KeyTrait, ValueTrait, ServerTrait {
13
        AdapterTrait::getAdapter insteadof KeyTrait;
14
        AdapterTrait::getAdapter insteadof ValueTrait;
15
        AdapterTrait::getAdapter insteadof ServerTrait;
16
    }
17
18
    /**
19
     * @var AdapterInterface
20
     */
21
    protected $adapter;
22
23
    /**
24
     * @param AdapterInterface $adapter
25
     */
26
    public function __construct(AdapterInterface $adapter)
27
    {
28
        $this->adapter = $adapter;
29
    }
30
}
31