ParcelServiceMapper

Implements \ParcelServiceMapperInterface

Class ParcelServiceMapper

package

Default

Methods

ParcelServiceDataMapper constructor.

__construct(\ParcelServiceDataAdapterInterface $dataAdapter) 

Arguments

Creates a GXParcelService object from given parcelServiceData.

createParcelService( $parcelServiceData) : \GXParcelService

Arguments

$parcelServiceData

Response

\GXParcelService

Creates a ParcelServiceCollection from given parcelServicesData array.

createParcelServiceCollection( $parcelServicesData) : \ParcelServiceCollection

Arguments

$parcelServicesData

Response

\ParcelServiceCollection

Creates a parcelServiceData array from given parcelService object.

createParcelServiceDataArray(\ParcelServiceInterface $parcelService) : array

Arguments

$parcelService

\ParcelServiceInterface

Response

array

Deletes a given parcel service.

delete(\ParcelServiceInterface $parcelService) 

Arguments

$parcelService

\ParcelServiceInterface

Fetches all parcel services limited by the pager.

findAll(\Pager|null $pager = null, array $sorters = array()) : \ParcelServiceCollection|null

Arguments

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

\ParcelServiceCollection|null

Fetches all parcel services found by given limited search condition.

findBy(\ParcelServiceSearchCondition $searchCondition, \Pager|null $pager = null, array $sorters = array()) : \ParcelServiceCollection|null

Arguments

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

\ParcelServiceCollection|null

Fetches a parcel service found by given ID.

findById(\ParcelServiceId $parcelServiceId) : \ParcelServiceInterface|null

Arguments

$parcelServiceId

\ParcelServiceId

Response

\ParcelServiceInterface|null

Inserts a given parcel service.

insert(\ParcelServiceInterface $parcelService) : \ParcelServiceInterface

Arguments

$parcelService

\ParcelServiceInterface

Response

\ParcelServiceInterface

Updates a given parcel service.

update(\ParcelServiceInterface $parcelService) : \ParcelServiceInterface

Arguments

$parcelService

\ParcelServiceInterface

Response

\ParcelServiceInterface

Properties

dataAdapter

dataAdapter : \ParcelServiceDataAdapterInterface