Header   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 26
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 3 1
A getName() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace Kodus\Mail;
4
5
class Header
6
{
7
    /**
8
     * @var string
9
     */
10
    private $name;
11
12
    /**
13
     * @var string
14
     */
15
    private $value;
16
17
    public function __construct(string $name, string $value)
18
    {
19
        $this->name = $name;
20
        $this->value = $value;
21 3
    }
22
23 3
    public function getName(): string
24 3
    {
25 3
        return $this->name;
26
    }
27
28
    public function getValue(): string
29
    {
30 2
        return $this->value;
31
    }
32
}
33