Logidav Docs

SaleShipmentService extends TransactionalService
in package

Class SaleShipmentService `

Table of Contents

Properties

$em  : EntityManager
$saleShipRepository  : mixed

Methods

addRepository()  : void
Add a repository to this service
addService()  : void
Add a service to this service
find()  : mixed
findLastInserted()  : mixed
findOneBy()  : mixed
generateShipmentDataMapping()  : array<string|int, mixed>
Map V2 data to logidav
getEntityManager()  : EntityManager
Getter of the Entity Manager
save()  : mixed
Save a SaleShipment
saveFromApi()  : SaleShipment
Save shipment from api
setEntityManager()  : mixed
Setter of the Entity Manager

Properties

Methods

addRepository()

Add a repository to this service

public addRepository(int $key, string $class) : void
Parameters
$key : int

Key

$class : string

Class

addService()

Add a service to this service

public addService(int $key, mixed $service) : void
Parameters
$key : int

Key

$service : mixed

generateShipmentDataMapping()

Map V2 data to logidav

public generateShipmentDataMapping(mixed $data) : array<string|int, mixed>
Parameters
$data : mixed
Return values
array<string|int, mixed>

getEntityManager()

Getter of the Entity Manager

public getEntityManager() : EntityManager
Return values
EntityManager

saveFromApi()

Save shipment from api

public saveFromApi(mixed $data[, bool $isV2Data = false ]) : SaleShipment
Parameters
$data : mixed
$isV2Data : bool = false
Tags
throws
Exception
Return values
SaleShipment

setEntityManager()

Setter of the Entity Manager

public setEntityManager(EntityManager $em) : mixed
Parameters
$em : EntityManager

the Entity Manager


        
On this page

Search results