1 | <?php |
||
13 | class MultipartRequest extends FluentRequest { |
||
14 | |||
15 | /** @var mixed[] */ |
||
16 | protected $multipartParams = []; |
||
17 | |||
18 | /** |
||
19 | * Check the structure of a multipart parameter array. |
||
20 | * |
||
21 | * @param mixed[] $params The multipart parameters to check. |
||
22 | * |
||
23 | * @throws Exception |
||
24 | */ |
||
25 | 2 | protected function checkMultipartParams( $params ) { |
|
35 | |||
36 | /** |
||
37 | * Set all multipart parameters, replacing all existing ones. |
||
38 | * |
||
39 | * Each key of the array passed in here must be the name of a parameter already set on this |
||
40 | * request object. |
||
41 | * |
||
42 | * @param $params |
||
43 | * @return $this |
||
44 | */ |
||
45 | public function setMultipartParams( $params ) { |
||
50 | |||
51 | /** |
||
52 | * Add extra multipart parameters. |
||
53 | * |
||
54 | * Each key of the array passed in here must be the name of a parameter already set on this |
||
55 | * request object. |
||
56 | * |
||
57 | * @param mixed[] $params |
||
58 | * |
||
59 | * @return $this |
||
60 | */ |
||
61 | 2 | public function addMultipartParams( $params ) { |
|
66 | |||
67 | /** |
||
68 | * Get all multipart request parameters. |
||
69 | * |
||
70 | * @return mixed[] |
||
71 | */ |
||
72 | 1 | public function getMultipartParams() { |
|
75 | } |
||
76 |