HeaderWithObservations::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
c 0
b 0
f 0
ccs 0
cts 4
cp 0
rs 10
cc 1
nc 1
nop 3
crap 2
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
final class HeaderWithObservations
11
{
12
    /** @var string */
13
    private $headerName;
14
    /** @var string */
15
    private $headerValue;
16
    /** @var ObservationCollection */
17
    private $observations;
18
19
    public function __construct(string $headerName, string $headerValue, ObservationCollection $observations)
20
    {
21
        $this->headerName = $headerName;
22
        $this->headerValue = $headerValue;
23
        $this->observations = $observations;
24
    }
25
26
    public function getHeaderName(): string
27
    {
28
        return $this->headerName;
29
    }
30
31
    public function getHeaderValue(): string
32
    {
33
        return $this->headerValue;
34
    }
35
36
    public function getObservations(): ObservationCollection
37
    {
38
        return $this->observations;
39
    }
40
}
41