ParcelServiceSerializer

Class ParcelServiceSerializer

package

Default

Methods

__construct

__construct(\LanguageProvider $languageProvider) 

Arguments

$languageProvider

\LanguageProvider

Deserialize the given json string to a parcel service entity.

deserialize(string|array $parcelService) : \GXParcelService

Arguments

$parcelService

string|array

Parcel service.

Response

\GXParcelService

Parcel service entity.

Encodes the given parcel service into a json string.

encode(\ParcelServiceInterface $parcelService) : string

Arguments

$parcelService

\ParcelServiceInterface

Parcel service to be serialized.

Response

string

Serialized parcel service.

Serializes the given parcel service into an array.

serialize(\ParcelServiceInterface $parcelService) : array

Arguments

$parcelService

\ParcelServiceInterface

Parcel service to be serialized.

Response

array

Serialized parcel service.

Properties

languageProvider

languageProvider : 

Type(s)