Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class UploadCommandHandler extends Handler |
||
16 | { |
||
17 | /** |
||
18 | * @param \diecoding\aws\s3\commands\UploadCommand $command |
||
19 | * |
||
20 | * @return \Aws\ResultInterface|\GuzzleHttp\Promise\PromiseInterface |
||
21 | */ |
||
22 | public function handle(UploadCommand $command) |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Create a new stream based on the input type. |
||
40 | * |
||
41 | * @param resource|string|StreamInterface $source path to a local file, resource or stream |
||
42 | * |
||
43 | * @return StreamInterface |
||
44 | */ |
||
45 | protected function sourceToStream($source): StreamInterface |
||
54 |