17 use Psr\Http\Message\ServerRequestInterface;
18 use Psr\Http\Message\StreamInterface;
19 use Psr\Http\Message\UploadedFileInterface;
137 $clonedObject = clone $this;
138 $clonedObject->cookieParams = $cookies;
139 return $clonedObject;
183 $clonedObject = clone $this;
184 $clonedObject->queryParams = $query;
185 return $clonedObject;
219 $clonedObject = clone $this;
221 return $clonedObject;
274 $clonedObject = clone $this;
275 $clonedObject->parsedBody = $data;
276 return $clonedObject;
313 return $this->attributes[$name] ?? $default;
334 $clonedObject = clone $this;
335 $clonedObject->attributes[$name] = $value;
336 return $clonedObject;
356 $clonedObject = clone $this;
357 if (!isset($clonedObject->attributes[$name])) {
358 return $clonedObject;
360 unset($clonedObject->attributes[$name]);
361 return $clonedObject;
373 if (is_array($file)) {
377 if (!$file instanceof UploadedFileInterface) {
378 throw new \InvalidArgumentException(
'Invalid file in uploaded files structure.', 1436717281);