Package
in package
implements
JsonSerializable
Class Package
Interfaces, Classes and Traits
- JsonSerializable
Table of Contents
- $dimensions : array<string|int, mixed>|null
- Dimensions of the given shipment.
- $packageId : string|null
- The unique ID that corresponds to the current package.
- $trackingNumber : string
- The tracking number of a given shipment. This number helps is obtaining tracking updates for a specific shipment.
- $trackingUrl : Uri
- The tracking URL to the carrier site with tracking information on your shipment.
- $weight : array<string|int, mixed>|null
- Weight of the given shipment.
- __construct() : mixed
- Package Class constructor. This is an object containing package information for a given shipment.
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
Properties
$dimensions
Dimensions of the given shipment.
public
array<string|int, mixed>|null
$dimensions
$packageId
The unique ID that corresponds to the current package.
public
string|null
$packageId
$trackingNumber
The tracking number of a given shipment. This number helps is obtaining tracking updates for a specific shipment.
public
string
$trackingNumber
$trackingUrl
The tracking URL to the carrier site with tracking information on your shipment.
public
Uri
$trackingUrl
$weight
Weight of the given shipment.
public
array<string|int, mixed>|null
$weight
Methods
__construct()
Package Class constructor. This is an object containing package information for a given shipment.
public
__construct(array<string|int, mixed> $package) : mixed
Parameters
- $package : array<string|int, mixed>
Return values
mixed —jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed