AbstractParsedHeader::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
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\Result;
9
10
abstract class AbstractParsedHeader
11
{
12
    private $name = '';
13
    private $value = '';
14
15
    abstract public function isSecure(): bool;
16
17 40
    public function __construct(string $name, string $value)
18
    {
19 40
        $this->name = $name;
20 40
        $this->value = $value;
21 40
    }
22
23
    public function name(): string
24
    {
25
        return $this->name;
26
    }
27
28
    public function value(): string
29
    {
30
        return $this->value;
31
    }
32
}
33