| 1 | <?php |
||
| 27 | class Part extends ParameterAnnotation |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * How the multipart request is encoded |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private $encoding; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Initialize annotation data |
||
| 38 | */ |
||
| 39 | 3 | protected function init(): void |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Get the encoding type |
||
| 48 | * |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | 2 | public function getEncoding(): string |
|
| 55 | |||
| 56 | /** |
||
| 57 | * Whether or not multiple annotations of this type can |
||
| 58 | * be added to a method |
||
| 59 | * |
||
| 60 | * @return bool |
||
| 61 | */ |
||
| 62 | 1 | public function allowMultiple(): bool |
|
| 66 | |||
| 67 | /** |
||
| 68 | * Return the converter interface class |
||
| 69 | * |
||
| 70 | * Can be one of RequestBodyConverter, ResponseBodyConverter, or StringConverter |
||
| 71 | * |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | 1 | public function converterType(): ?string |
|
| 78 | } |
||
| 79 |