ParcelTrackingCodeFactory

Class ParcelTrackingCodeFactory

package

Default

Methods

Creates an active record version of the parcel tracking code entity.

create(\ParcelTrackingCodeServiceId $parcelServiceId, \ParcelTrackingCodeOrderId $orderId, \OrderParcelTrackingCode $trackingCode, \ParcelTrackingCodeLanguageId $languageId) : \ActiveRecordParcelTrackingCode

Arguments

$parcelServiceId

\ParcelTrackingCodeServiceId

Id of related parcel service.

$orderId

\ParcelTrackingCodeOrderId

Id of related order.

$trackingCode

\OrderParcelTrackingCode

Parcel tracking code of order.

$languageId

\ParcelTrackingCodeLanguageId

Language id, used to fetch language specific descriptions.

Response

\ActiveRecordParcelTrackingCode

New parcel tracking code entity with active record functionality.

Creates an active record version of the given parcel tracking code entity.

createFrom(\GXParcelTrackingCode $trackingCode) : \ActiveRecordParcelTrackingCode

Arguments

$trackingCode

\GXParcelTrackingCode

Entity to be enriched with AR functionality.

Response

\ActiveRecordParcelTrackingCode

New parcel tracking code entity with active record functionality.

Creates an active record version of the parcel tracking code entity with lightweight data.

createLightweight(\ParcelTrackingCodeOrderId $orderId, \ParcelTrackingCodeServiceName $name, \ParcelTrackingCodeUrl $url, \ParcelTrackingCodeComment|null $comment = null) : \ActiveRecordParcelTrackingCode

Arguments

$orderId

\ParcelTrackingCodeOrderId

Id of related order.

$name

\ParcelTrackingCodeServiceName

Name of parcel service.

$url

\ParcelTrackingCodeUrl

Parcel tracking code url.

$comment

\ParcelTrackingCodeComment|null

Optional comment for parcel tracking code.

Response

\ActiveRecordParcelTrackingCode

New parcel tracking code entity with active record functionality.

Creates and returns a delete service for parcel tracking codes.

deleteService() : \ParcelTrackingCodeDeleteService

The service will be cached in memory.

Response

\ParcelTrackingCodeDeleteService

Service for delete operations in the parcel tracking code domain.

Creates and returns a parcel tracking code finder.

finder() : \ParcelTrackingCodeFinder

The finder will be cached in memory.

Response

\ParcelTrackingCodeFinder

Search component to find parcel tracking codes.

Creates and returns the parcel tracking code repository.

trackingCodeRepository() : \ParcelTrackingCodeRepository

The repository will be cached in memory.

Response

\ParcelTrackingCodeRepository

Access to data layer of domain.

Properties

repository

repository : \ParcelTrackingCodeRepository

deleteService

deleteService : \ParcelTrackingCodeDeleteService

finder

finder : \ParcelTrackingCodeFinder