1 | <?php |
||
23 | abstract class AbstractParameterHandler implements ParameterHandler |
||
24 | { |
||
25 | private const HEADER_CON_TRANS_ENC = 'Content-Transfer-Encoding'; |
||
26 | |||
27 | /** |
||
28 | * Convert a value to a generator |
||
29 | * |
||
30 | * This method is used when a value can optionally be an array and each element in the |
||
31 | * array should be processed the same way. |
||
32 | * |
||
33 | * @param array|mixed $list |
||
34 | * @return Generator |
||
35 | * @throws \RuntimeException |
||
36 | */ |
||
37 | 20 | protected function getListValues($list): Generator |
|
47 | |||
48 | /** |
||
49 | * Handle Part or PartMap annotations |
||
50 | * |
||
51 | * This could use a simple method using name and value, or if a [@see MultipartBody] is passed in as the |
||
52 | * value, then a filename and additional headers could be set as well. |
||
53 | * |
||
54 | * @param RequestBuilder $requestBuilder |
||
55 | * @param RequestBodyConverter $converter |
||
56 | * @param string $name |
||
57 | * @param mixed $value |
||
58 | * @param string $encoding |
||
59 | * @return void |
||
60 | */ |
||
61 | 6 | protected function handlePart( |
|
85 | } |
||
86 |