Header   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 40
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

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