Configuration::getType()   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 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
crap 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