| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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() |
||
| 51 | } |
||
| 52 | } |
||
| 53 |