ValueField   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
eloc 6
dl 0
loc 19
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setValue() 0 3 1
A getValue() 0 3 1
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Artack\Dsn\Field;
6
7
class ValueField extends AbstractField
8
{
9
    private $value;
10
11 8
    public function __construct(string $name, string $value, ?string $comment)
12
    {
13 8
        parent::__construct($name, $comment);
14
15 8
        $this->setValue($value);
16 8
    }
17
18 4
    public function getValue(): string
19
    {
20 4
        return $this->value;
21
    }
22
23 8
    public function setValue(string $value): void
24
    {
25 8
        $this->value = $value;
26 8
    }
27
}
28