NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Interface UploadPartInterface

An object that encapsulates the data for an upload part

  Aws\Common\Model\MultipartUpload\UploadPartInterface implements Serializable

### Direct known implementers

`Aws\Common\Model\MultipartUpload\AbstractUploadPart`

### Indirect known implementers

`Aws\Glacier\Model\MultipartUpload\UploadPart`, `Aws\S3\Model\MultipartUpload\UploadPart`

Namespace: Aws\Common\Model\MultipartUpload
Located at Aws/Common/Model/MultipartUpload/UploadPartInterface.php

## Methods summary

- `public static` `fromArray ( array|\Traversable $data )`

  Create an upload part from an array

- `public` `getPartNumber ( )`

  Returns the part number of the upload part which is used as an identifier

- `public` `toArray ( )`

  Returns the array form of the upload part

## Methods detail

# `public static `Aws\Common\Model\MultipartUpload\UploadPartInterface``
`fromArray( array|`Traversable` $data )`

Create an upload part from an array

#### Parameters

$data
  `array|`Traversable``
  $data Data representing the upload part

#### Returns

``Aws\Common\Model\MultipartUpload\UploadPartInterface``
# `public integer`
`getPartNumber( )`

Returns the part number of the upload part which is used as an identifier

#### Returns

`integer`
# `public array`
`toArray( )`

Returns the array form of the upload part

#### Returns

`array`

### Methods inherited from Serializable

`serialize()`, `unserialize()`

### Magic methods summary