1 | <?php |
||
22 | abstract class AbstractContentHeader implements HeaderInterface |
||
23 | { |
||
24 | use HeaderFactoryTrait; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected static $headerName; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $values; |
||
35 | |||
36 | /** |
||
37 | * @param $value |
||
38 | */ |
||
39 | public function __construct($value) |
||
51 | |||
52 | /** |
||
53 | * Get header field name. |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getFieldName() |
||
61 | |||
62 | /** |
||
63 | * Get header field value. |
||
64 | * |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public function getFieldValue() |
||
71 | |||
72 | /** |
||
73 | * Cast header to string. |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | public function __toString() |
||
81 | } |
||
82 |