1 | <?php namespace Neomerx\JsonApi\Http\Headers; |
||
26 | class HeaderParameters implements HeaderParametersInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $method; |
||
32 | |||
33 | /** |
||
34 | * @var HeaderInterface |
||
35 | */ |
||
36 | private $contentType; |
||
37 | |||
38 | /** |
||
39 | * @var AcceptHeaderInterface |
||
40 | */ |
||
41 | private $accept; |
||
42 | |||
43 | /** |
||
44 | * @param string $method |
||
45 | * @param AcceptHeaderInterface $accept |
||
46 | * @param HeaderInterface $contentType |
||
47 | */ |
||
48 | 10 | public function __construct($method, AcceptHeaderInterface $accept, HeaderInterface $contentType) |
|
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | 8 | public function getContentTypeHeader() |
|
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | 10 | public function getAcceptHeader() |
|
70 | |||
71 | /** |
||
72 | * @inheritdoc |
||
73 | */ |
||
74 | 1 | public function getMethod() |
|
78 | } |
||
79 |