Total Complexity | 3 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
23 | class ConnectionHeader extends Header |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | public const CONNECTION_CLOSE = 'close'; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | public const CONNECTION_KEEP_ALIVE = 'keep-alive'; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private string $value; |
||
40 | |||
41 | /** |
||
42 | * Constructor of the class |
||
43 | * |
||
44 | * @param string $value |
||
45 | * |
||
46 | * @throws InvalidHeaderValueException |
||
47 | * If the value isn't valid. |
||
48 | */ |
||
49 | 7 | public function __construct(string $value) |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | 5 | public function getFieldName(): string |
|
62 | } |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | 3 | public function getFieldValue(): string |
|
72 |