| @@ 13-53 (lines=41) @@ | ||
| 10 | * Class UploadFailed |
|
| 11 | * @package STS\StorageConnect\Events |
|
| 12 | */ |
|
| 13 | class UploadFailed |
|
| 14 | { |
|
| 15 | /** |
|
| 16 | * @var string |
|
| 17 | */ |
|
| 18 | public $message; |
|
| 19 | /** |
|
| 20 | * @var CloudStorage |
|
| 21 | */ |
|
| 22 | public $storage; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * @var \Exception |
|
| 26 | */ |
|
| 27 | public $exception; |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @var string |
|
| 31 | */ |
|
| 32 | public $sourcePath; |
|
| 33 | ||
| 34 | /** |
|
| 35 | * @var Model |
|
| 36 | */ |
|
| 37 | public $target; |
|
| 38 | ||
| 39 | /** |
|
| 40 | * UploadFailed constructor. |
|
| 41 | * |
|
| 42 | * @param CloudStorage $storage |
|
| 43 | * @param UploadException $exception |
|
| 44 | */ |
|
| 45 | public function __construct(CloudStorage $storage, UploadException $exception ) |
|
| 46 | { |
|
| 47 | $this->message = $exception->getMessage(); |
|
| 48 | $this->storage = $storage; |
|
| 49 | $this->exception = $exception; |
|
| 50 | $this->sourcePath = $exception->getRequest()->getSourcePath(); |
|
| 51 | $this->target = $exception->getRequest()->getTarget(); |
|
| 52 | } |
|
| 53 | } |
|
| @@ 13-54 (lines=42) @@ | ||
| 10 | * Class UploadInProgress |
|
| 11 | * @package STS\StorageConnect\Events |
|
| 12 | */ |
|
| 13 | class UploadInProgress |
|
| 14 | { |
|
| 15 | /** |
|
| 16 | * @var CloudStorage |
|
| 17 | */ |
|
| 18 | public $storage; |
|
| 19 | ||
| 20 | /** |
|
| 21 | * @var string |
|
| 22 | */ |
|
| 23 | public $sourcePath; |
|
| 24 | ||
| 25 | /** |
|
| 26 | * @var string |
|
| 27 | */ |
|
| 28 | public $destinationPath; |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @var Model |
|
| 32 | */ |
|
| 33 | public $target; |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @var UploadResponse |
|
| 37 | */ |
|
| 38 | public $response; |
|
| 39 | ||
| 40 | /** |
|
| 41 | * UploadSucceeded constructor. |
|
| 42 | * |
|
| 43 | * @param CloudStorage $storage |
|
| 44 | * @param UploadResponse $response |
|
| 45 | */ |
|
| 46 | public function __construct(CloudStorage $storage, UploadResponse $response) |
|
| 47 | { |
|
| 48 | $this->storage = $storage; |
|
| 49 | $this->sourcePath = $response->getRequest()->getSourcePath(); |
|
| 50 | $this->destinationPath = $response->getRequest()->getDestinationPath(); |
|
| 51 | $this->target = $response->getRequest()->getTarget(); |
|
| 52 | $this->response = $response; |
|
| 53 | } |
|
| 54 | } |
|
| @@ 13-53 (lines=41) @@ | ||
| 10 | * Class RetryingUpload |
|
| 11 | * @package STS\StorageConnect\Events |
|
| 12 | */ |
|
| 13 | class UploadRetrying |
|
| 14 | { |
|
| 15 | /** |
|
| 16 | * @var string |
|
| 17 | */ |
|
| 18 | public $message; |
|
| 19 | /** |
|
| 20 | * @var CloudStorage |
|
| 21 | */ |
|
| 22 | public $storage; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * @var UploadException |
|
| 26 | */ |
|
| 27 | public $exception; |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @var string |
|
| 31 | */ |
|
| 32 | public $sourcePath; |
|
| 33 | ||
| 34 | /** |
|
| 35 | * @var Model |
|
| 36 | */ |
|
| 37 | public $target; |
|
| 38 | ||
| 39 | /** |
|
| 40 | * RetryingUpload constructor. |
|
| 41 | * |
|
| 42 | * @param CloudStorage $storage |
|
| 43 | * @param UploadException $exception |
|
| 44 | */ |
|
| 45 | public function __construct(CloudStorage $storage, UploadException $exception ) |
|
| 46 | { |
|
| 47 | $this->message = $exception->getMessage(); |
|
| 48 | $this->storage = $storage; |
|
| 49 | $this->exception = $exception; |
|
| 50 | $this->sourcePath = $exception->getRequest()->getSourcePath(); |
|
| 51 | $this->target = $exception->getRequest()->getTarget(); |
|
| 52 | } |
|
| 53 | } |
|
| @@ 13-54 (lines=42) @@ | ||
| 10 | * Class UploadStarted |
|
| 11 | * @package STS\StorageConnect\Events |
|
| 12 | */ |
|
| 13 | class UploadStarted |
|
| 14 | { |
|
| 15 | /** |
|
| 16 | * @var CloudStorage |
|
| 17 | */ |
|
| 18 | public $storage; |
|
| 19 | ||
| 20 | /** |
|
| 21 | * @var string |
|
| 22 | */ |
|
| 23 | public $sourcePath; |
|
| 24 | ||
| 25 | /** |
|
| 26 | * @var string |
|
| 27 | */ |
|
| 28 | public $destinationPath; |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @var Model |
|
| 32 | */ |
|
| 33 | public $target; |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @var UploadResponse |
|
| 37 | */ |
|
| 38 | public $response; |
|
| 39 | ||
| 40 | /** |
|
| 41 | * UploadSucceeded constructor. |
|
| 42 | * |
|
| 43 | * @param CloudStorage $storage |
|
| 44 | * @param UploadResponse $response |
|
| 45 | */ |
|
| 46 | public function __construct(CloudStorage $storage, UploadResponse $response) |
|
| 47 | { |
|
| 48 | $this->storage = $storage; |
|
| 49 | $this->sourcePath = $response->getRequest()->getSourcePath(); |
|
| 50 | $this->destinationPath = $response->getRequest()->getDestinationPath(); |
|
| 51 | $this->target = $response->getRequest()->getTarget(); |
|
| 52 | $this->response = $response; |
|
| 53 | } |
|
| 54 | } |
|
| @@ 13-54 (lines=42) @@ | ||
| 10 | * Class UploadSucceeded |
|
| 11 | * @package STS\StorageConnect\Events |
|
| 12 | */ |
|
| 13 | class UploadSucceeded |
|
| 14 | { |
|
| 15 | /** |
|
| 16 | * @var CloudStorage |
|
| 17 | */ |
|
| 18 | public $storage; |
|
| 19 | ||
| 20 | /** |
|
| 21 | * @var string |
|
| 22 | */ |
|
| 23 | public $sourcePath; |
|
| 24 | ||
| 25 | /** |
|
| 26 | * @var string |
|
| 27 | */ |
|
| 28 | public $destinationPath; |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @var Model |
|
| 32 | */ |
|
| 33 | public $target; |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @var UploadResponse |
|
| 37 | */ |
|
| 38 | public $response; |
|
| 39 | ||
| 40 | /** |
|
| 41 | * UploadSucceeded constructor. |
|
| 42 | * |
|
| 43 | * @param CloudStorage $storage |
|
| 44 | * @param UploadResponse $response |
|
| 45 | */ |
|
| 46 | public function __construct(CloudStorage $storage, UploadResponse $response) |
|
| 47 | { |
|
| 48 | $this->storage = $storage; |
|
| 49 | $this->sourcePath = $response->getRequest()->getSourcePath(); |
|
| 50 | $this->destinationPath = $response->getRequest()->getDestinationPath(); |
|
| 51 | $this->target = $response->getRequest()->getTarget(); |
|
| 52 | $this->response = $response; |
|
| 53 | } |
|
| 54 | } |
|