| 1 |
<?php |
| 2 |
|
| 3 |
namespace Aws\S3\S3Transfer\Models; |
| 4 |
|
| 5 |
use Aws\S3\S3Transfer\Progress\AbstractTransferListener; |
| 6 |
use Aws\S3\S3Transfer\Utils\FileDownloadHandler; |
| 7 |
|
| 8 |
final class ResumeDownloadRequest |
| 9 |
{ |
| 10 |
|
| 11 |
private ResumableDownload|string $resumableDownload; |
| 12 |
|
| 13 |
|
| 14 |
private string $downloadHandlerClass; |
| 15 |
|
| 16 |
|
| 17 |
private array $listeners; |
| 18 |
|
| 19 |
|
| 20 |
private ?AbstractTransferListener $progressTracker; |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
public function __construct( |
| 29 |
string|ResumableDownload $resumableDownload, |
| 30 |
string $downloadHandlerClass = FileDownloadHandler::class, |
| 31 |
array $listeners = [], |
| 32 |
?AbstractTransferListener $progressTracker = null |
| 33 |
) { |
| 34 |
$this->resumableDownload = $resumableDownload; |
| 35 |
$this->downloadHandlerClass = $downloadHandlerClass; |
| 36 |
$this->listeners = $listeners; |
| 37 |
$this->progressTracker = $progressTracker; |
| 38 |
} |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
public function getResumableDownload(): string|ResumableDownload |
| 44 |
{ |
| 45 |
return $this->resumableDownload; |
| 46 |
} |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
public function getDownloadHandlerClass(): string |
| 52 |
{ |
| 53 |
return $this->downloadHandlerClass; |
| 54 |
} |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
public function getListeners(): array |
| 60 |
{ |
| 61 |
return $this->listeners; |
| 62 |
} |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
public function getProgressTracker(): ?AbstractTransferListener |
| 68 |
{ |
| 69 |
return $this->progressTracker; |
| 70 |
} |
| 71 |
} |