AbstractParsedHeader   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 21
c 0
b 0
f 0
ccs 4
cts 8
cp 0.5
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A value() 0 3 1
A __construct() 0 4 1
A name() 0 3 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