AbstractConfigurationHandler   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 28
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setKey() 0 4 1
A getKey() 0 4 1
get() 0 1 ?
1
<?php
2
3
namespace Habu\ComposerScriptUtils\Configuration;
4
5
use Habu\ComposerScriptUtils\Interfaces\ConfigurationHandlerInterface;
6
7
/**
8
 * Class AbstractConfigurationHandler.
9
 *
10
 * @author Ruben Knol <[email protected]>
11
 */
12
abstract class AbstractConfigurationHandler implements ConfigurationHandlerInterface
13
{
14
    /**
15
     * @var string
16
     */
17
    private $key;
18
19
    /**
20
     * {@inheritdoc}
21
     */
22 9
    public function setKey($key)
23
    {
24 9
        $this->key = $key;
25 9
    }
26
27
    /**
28
     * @return string
29
     */
30 8
    protected function getKey()
31
    {
32 8
        return $this->key;
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     */
38
    abstract public function get($value);
39
}
40