Configuration   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
dl 0
loc 28
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getValue() 0 3 1
A getType() 0 3 1
A getSourceType() 0 3 1
1
<?php
2
3
namespace Amock;
4
5
class Configuration
6
{
7
    private $type;
8
9
    private $sourceType;
10
11
    private $value;
12
13 12
    public function __construct(string $type, string $sourceType, string $value)
14
    {
15 12
        $this->type = $type;
16 12
        $this->sourceType = $sourceType;
17 12
        $this->value = $value;
18 12
    }
19
20 11
    public function getType(): string
21
    {
22 11
        return $this->type;
23
    }
24
25 12
    public function getSourceType(): string
26
    {
27 12
        return $this->sourceType;
28
    }
29
30 12
    public function getValue(): string
31
    {
32 12
        return $this->value;
33
    }
34
}
35