ParcelTrackingCodeRepository

Class ParcelTrackingCodeRepository

package

Default

Methods

ParcelTrackingCodeRepository constructor.

__construct(\GXParcelTrackingCodeWriter $writer, \ParcelTrackingCodeDeleter $deleter) 

Arguments

$writer

\GXParcelTrackingCodeWriter

Component to write data in orders_parcel_tracking_codes table.

$deleter

\ParcelTrackingCodeDeleter

Component to remove data from orders_parcel_tracking_codes table.

Removes the parcel tracking code entry with the given tracking code id.

delete(\ParcelTrackingCodeId $id) : $this|\ParcelTrackingCodeRepository

Arguments

$id

\ParcelTrackingCodeId

Id of entry to be removed.

Response

$this|\ParcelTrackingCodeRepository

Same instance for chained method calls.

Saves the given parcel tracking code entity in the database.

save(\GXParcelTrackingCode $parcelTrackingCode) : \ParcelTrackingCodeId

Arguments

$parcelTrackingCode

\GXParcelTrackingCode

Entity to be saved.

Response

\ParcelTrackingCodeId

Id of new order parcel tracking code.

Properties

writer

writer : \GXParcelTrackingCodeWriter

deleter

deleter : \ParcelTrackingCodeDeleter