1 | <?php |
||
21 | class Configuration implements ConfigurationInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var MessageFactoryInterface |
||
25 | */ |
||
26 | private $messageFactory; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $protocolVersion = MessageInterface::PROTOCOL_VERSION_1_1; |
||
32 | |||
33 | /** |
||
34 | * @var bool |
||
35 | */ |
||
36 | private $keepAlive = false; |
||
37 | |||
38 | /** |
||
39 | * @var string|null |
||
40 | */ |
||
41 | private $encodingType; |
||
42 | |||
43 | /** |
||
44 | * @var string |
||
45 | */ |
||
46 | private $boundary; |
||
47 | |||
48 | /** |
||
49 | * @var float |
||
50 | */ |
||
51 | private $timeout = 10; |
||
52 | |||
53 | /** |
||
54 | * @var string |
||
55 | */ |
||
56 | private $userAgent; |
||
57 | |||
58 | /** |
||
59 | * @param MessageFactoryInterface|null $messageFactory |
||
60 | */ |
||
61 | 16223 | public function __construct(MessageFactoryInterface $messageFactory = null) |
|
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | 15390 | public function getMessageFactory() |
|
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | 16223 | public function setMessageFactory(MessageFactoryInterface $factory) |
|
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | 10985 | public function getProtocolVersion() |
|
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | 4035 | public function setProtocolVersion($protocolVersion) |
|
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | 15363 | public function getKeepAlive() |
|
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | 9 | public function setKeepAlive($keepAlive) |
|
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | 15354 | public function hasEncodingType() |
|
123 | |||
124 | /** |
||
125 | * {@inheritdoc} |
||
126 | */ |
||
127 | 9 | public function getEncodingType() |
|
131 | |||
132 | /** |
||
133 | * {@inheritdoc} |
||
134 | */ |
||
135 | 9 | public function setEncodingType($encodingType) |
|
139 | |||
140 | /** |
||
141 | * {@inheritdoc} |
||
142 | */ |
||
143 | 1768 | public function getBoundary() |
|
147 | |||
148 | /** |
||
149 | * {@inheritdoc} |
||
150 | */ |
||
151 | 16223 | public function setBoundary($boundary) |
|
155 | |||
156 | /** |
||
157 | * {@inheritdoc} |
||
158 | */ |
||
159 | 14634 | public function getTimeout() |
|
163 | |||
164 | /** |
||
165 | * {@inheritdoc} |
||
166 | */ |
||
167 | 357 | public function setTimeout($timeout) |
|
171 | |||
172 | /** |
||
173 | * {@inheritdoc} |
||
174 | */ |
||
175 | 15363 | public function getUserAgent() |
|
179 | |||
180 | /** |
||
181 | * {@inheritdoc} |
||
182 | */ |
||
183 | 16223 | public function setUserAgent($userAgent) |
|
187 | |||
188 | /** |
||
189 | * {@inheritdoc} |
||
190 | */ |
||
191 | 18 | public function hasBaseUri() |
|
195 | |||
196 | /** |
||
197 | * {@inheritdoc} |
||
198 | */ |
||
199 | 9 | public function getBaseUri() |
|
203 | |||
204 | /** |
||
205 | * {@inheritdoc} |
||
206 | */ |
||
207 | 9 | public function setBaseUri($baseUri) |
|
211 | } |
||
212 |