HttpHeader::name()   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
eloc 1
dl 0
loc 3
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php declare(strict_types=1);
2
3
/**
4
 * @license  http://opensource.org/licenses/mit-license.php MIT
5
 * @link     https://github.com/nicoSWD
6
 * @author   Nicolas Oelgart <[email protected]>
7
 */
8
namespace nicoSWD\SecHeaderCheck\Domain\Header;
9
10
final class HttpHeader
11
{
12
    private $name = '';
13
    private $value = '';
14
15 40
    public function __construct(string $name, string $value)
16
    {
17 40
        $this->name = $name;
18 40
        $this->value = $value;
19 40
    }
20
21 40
    public function name(): string
22
    {
23 40
        return $this->name;
24
    }
25
26 40
    public function value(): string
27
    {
28 40
        return $this->value;
29
    }
30
}
31