1 | <?php |
||
35 | trait CommonHeaderFieldStructure { |
||
36 | |||
37 | /** @var string */ |
||
38 | protected $headerFieldName; |
||
39 | |||
40 | /** @var string */ |
||
41 | protected $headerFieldValue; |
||
42 | |||
43 | /** |
||
44 | * Return the header field name. |
||
45 | * @return string |
||
46 | */ |
||
47 | 5 | public function getName() { |
|
50 | |||
51 | /** |
||
52 | * Set the header field name. |
||
53 | * @param string $headerFieldName |
||
54 | * @throws \InvalidArgumentException |
||
55 | */ |
||
56 | 1 | public function setName($headerFieldName) { |
|
60 | |||
61 | /** |
||
62 | * Return the header field value. |
||
63 | * @return string |
||
64 | */ |
||
65 | 5 | public function getValue() { |
|
68 | |||
69 | /** |
||
70 | * Set the header field value. |
||
71 | * @param string $headerFieldValue |
||
72 | * @throws \InvalidArgumentException |
||
73 | */ |
||
74 | 1 | public function setValue($headerFieldValue) { |
|
78 | |||
79 | /** |
||
80 | * Return a string representation of the header field. |
||
81 | * @return string |
||
82 | */ |
||
83 | 2 | public function toString() { |
|
86 | |||
87 | } |
||
88 |