HermesHSIParcel

Implements \JsonSerializable

package

Default

Methods

HermesHSIParcel constructor.

__construct() 
Throws
\HermesHSIInvalidDataException

getParcelClass

getParcelClass() : string

Response

string

getParcelDepth

getParcelDepth() : integer

Response

integer

getParcelHeight

getParcelHeight() : integer

Response

integer

getParcelWeight

getParcelWeight() : integer

Response

integer

getParcelWidth

getParcelWidth() : integer

Response

integer

Specify data which should be serialized to JSON

jsonSerialize() : mixed
link

https://php.net/manual/en/jsonserializable.jsonserialize.php

since 5.4.0

Response

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

setParcelClass

setParcelClass(string $parcelClass) 
Throws
\HermesHSIInvalidDataException

Arguments

$parcelClass

string

Sets parcel depth in mm

setParcelDepth(integer $parcelDepth) 
Throws
\HermesHSIInvalidDataException

Arguments

$parcelDepth

integer

Sets parcel height in mm

setParcelHeight(integer $parcelHeight) 
Throws
\HermesHSIInvalidDataException

Arguments

$parcelHeight

integer

Sets parcel weight in grams.

setParcelWeight(integer $parcelWeight) 
Throws
\HermesHSIInvalidDataException

Arguments

$parcelWeight

integer

Sets parcel width in mm

setParcelWidth(integer $parcelWidth) 
Throws
\HermesHSIInvalidDataException

Arguments

$parcelWidth

integer

Properties

parcelClass

parcelClass : string
var

Type(s)

string

parcelHeight

parcelHeight : integer
var

Type(s)

integer

parcelWidth

parcelWidth : integer
var

Type(s)

integer

parcelDepth

parcelDepth : integer
var

Type(s)

integer

parcelWeight

parcelWeight : integer
var

Type(s)

integer