1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | namespace Worldline\Connect\Sdk\V1\Merchant\Disputes; |
7: | |
8: | use Worldline\Connect\Sdk\Communication\MultipartDataObject; |
9: | use Worldline\Connect\Sdk\Communication\MultipartFormDataObject; |
10: | use Worldline\Connect\Sdk\Domain\UploadableFile; |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | class UploadFileRequest extends MultipartDataObject |
19: | { |
20: | |
21: | |
22: | |
23: | public $file; |
24: | |
25: | public function toMultipartFormDataObject() |
26: | { |
27: | $result = new MultipartFormDataObject(); |
28: | if (!is_null($this->file)) { |
29: | $result->addFile("file", $this->file); |
30: | } |
31: | return $result; |
32: | } |
33: | } |
34: | |