Header::getHeaderKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace Dolibarr\Client\Domain\Authentication;
5
6
use Webmozart\Assert\Assert;
7
8
/**
9
 * @author Laurent De Coninck <[email protected]>
10
 */
11
class Header
12
{
13
14
    /**
15
     * @var string
16
     */
17
    private $headerKey;
18
19
    /**
20
     * @var string
21
     */
22
    private $headerValue;
23
24
    /**
25
     * @param string $headerKey
26
     * @param string $headerValue
27
     */
28
    public function __construct($headerKey, $headerValue)
29
    {
30
        Assert::notEmpty($headerKey);
31
        Assert::notEmpty($headerValue);
32
33
        $this->headerKey = $headerKey;
34
        $this->headerValue = $headerValue;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getHeaderKey()
41
    {
42
        return $this->headerKey;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getHeaderValue()
49
    {
50
        return $this->headerValue;
51
    }
52
}
53