Documentation

TransferStateInterface extends Countable, IteratorAggregate, Serializable

State of a multipart upload

Table of Contents

Methods

addPart()  : self
Add a part to the transfer state
fromUploadId()  : self
Create the transfer state from the results of list parts request
getPart()  : UploadPartInterface
Get the part information of a specific part
getPartNumbers()  : array<string|int, mixed>
Get a list of all of the uploaded part numbers
getUploadId()  : UploadIdInterface
Get the params used to identify an upload part
hasPart()  : bool
Check if a specific part has been uploaded
isAborted()  : bool
Check if the transfer has been marked as aborted
setAborted()  : self
Set whether or not the transfer has been aborted

Methods

getPartNumbers()

Get a list of all of the uploaded part numbers

public getPartNumbers() : array<string|int, mixed>
Return values
array<string|int, mixed>

hasPart()

Check if a specific part has been uploaded

public hasPart(int $partNumber) : bool
Parameters
$partNumber : int

Part to check

Return values
bool

isAborted()

Check if the transfer has been marked as aborted

public isAborted() : bool
Return values
bool

setAborted()

Set whether or not the transfer has been aborted

public setAborted(bool $aborted) : self
Parameters
$aborted : bool

Set to true to mark the transfer as aborted

Return values
self

        
On this page

Search results