1 | <?php |
||
20 | class InternalRequest extends Request implements InternalRequestInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $datas = []; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $files = []; |
||
31 | |||
32 | /** |
||
33 | * @param null|string|UriInterface $uri |
||
34 | * @param null|string $method |
||
35 | * @param string|resource|StreamInterface $body |
||
36 | * @param array $datas |
||
37 | * @param array $files |
||
38 | * @param array $headers |
||
39 | * @param array $parameters |
||
40 | */ |
||
41 | 15489 | public function __construct( |
|
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | 15426 | public function getDatas() |
|
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | 27 | public function hasData($name) |
|
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | 27 | public function getData($name) |
|
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | 18 | public function withData($name, $value) |
|
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | 9 | public function withAddedData($name, $value) |
|
103 | |||
104 | /** |
||
105 | * {@inheritdoc} |
||
106 | */ |
||
107 | 9 | public function withoutData($name) |
|
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | 15426 | public function getFiles() |
|
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | 27 | public function hasFile($name) |
|
130 | |||
131 | /** |
||
132 | * {@inheritdoc} |
||
133 | */ |
||
134 | 27 | public function getFile($name) |
|
138 | |||
139 | /** |
||
140 | * {@inheritdoc} |
||
141 | */ |
||
142 | 18 | public function withFile($name, $file) |
|
149 | |||
150 | /** |
||
151 | * {@inheritdoc} |
||
152 | */ |
||
153 | 9 | public function withAddedFile($name, $file) |
|
162 | |||
163 | /** |
||
164 | * {@inheritdoc} |
||
165 | */ |
||
166 | 9 | public function withoutFile($name) |
|
173 | } |
||
174 |