Header::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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