MultipartUploadingTrait
Table of Contents
- getStateFromService() : UploadState
- Creates an UploadState object for a multipart upload by querying the service for the specified upload's information.
- determinePartSize() : mixed
- extractETag() : mixed
- getCompleteParams() : mixed
- getConfig() : array<string|int, mixed>
- getInitiateParams() : mixed
- getSourceMimeType() : string|null
- getSourceSize() : int
- getState() : UploadState
- handleResult() : mixed
Methods
getStateFromService()
Creates an UploadState object for a multipart upload by querying the service for the specified upload's information.
public
static getStateFromService(S3ClientInterface $client, string $bucket, string $key, string $uploadId) : UploadState
Parameters
- $client : S3ClientInterface
-
S3Client used for the upload.
- $bucket : string
-
Bucket for the multipart upload.
- $key : string
-
Object key for the multipart upload.
- $uploadId : string
-
Upload ID for the multipart upload.
Return values
UploadState —determinePartSize()
protected
determinePartSize() : mixed
Return values
mixed —extractETag()
protected
abstract extractETag(ResultInterface $result) : mixed
Parameters
- $result : ResultInterface
Return values
mixed —getCompleteParams()
protected
getCompleteParams() : mixed
Return values
mixed —getConfig()
protected
abstract getConfig() : array<string|int, mixed>
Return values
array<string|int, mixed> —getInitiateParams()
protected
getInitiateParams() : mixed
Return values
mixed —getSourceMimeType()
protected
abstract getSourceMimeType() : string|null
Return values
string|null —getSourceSize()
protected
abstract getSourceSize() : int
Return values
int —getState()
protected
abstract getState() : UploadState
Return values
UploadState —handleResult()
protected
handleResult(CommandInterface $command, ResultInterface $result) : mixed
Parameters
- $command : CommandInterface
- $result : ResultInterface