class ErpSyncQuantityCommand extends ErpContainerCommand

Class ErpSyncQuantityCommand - sync products qunatity

Properties

protected InputInterface $input from ErpContainerCommand
protected OutputInterface $output from ErpContainerCommand

Methods

execute(InputInterface $input, OutputInterface $output)

No description

mixed
dispatchEventWithResult(string $eventName, mixed $parameter = null)

Dispatch event and return result

object
get(string $service)

Get container service

array
getMappings(string $entity, mixed $params = null)

Cache all mappings in array

mixed
getMappingsValueForKey(string $key, array $mappings)

Get erp data key

mixed
getValueFromErpData(string $key, array $data, array $mappings)

Extract value for erp data

writeError(string $message)

Write error message to console

writeSuccess(string $message)

Write success message to console

writeLog(string $message)

Write success and error messages to log file

static 
setPage(int $page, int $maxPages, string $path)

Write max page parameter to file

static 
writteDuplicates(string $path, string $duplicates)

Write duplicates to file

configure()

No description

executeCommand()

No description

insert()

Insert new simple products

update()

Update simple product table

updateProductArrivalDates()

Update product arrival dates

Details

in ErpContainerCommand at line 44
protected execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

in ErpContainerCommand at line 68
protected mixed dispatchEventWithResult(string $eventName, mixed $parameter = null)

Dispatch event and return result

Parameters

string $eventName
mixed $parameter

Return Value

mixed

in ErpContainerCommand at line 84
protected object get(string $service)

Get container service

Parameters

string $service

Return Value

object

in ErpContainerCommand at line 97
protected array getMappings(string $entity, mixed $params = null)

Cache all mappings in array

Parameters

string $entity
mixed $params

Return Value

array

in ErpContainerCommand at line 178
protected mixed getMappingsValueForKey(string $key, array $mappings)

Get erp data key

Parameters

string $key
array $mappings

Return Value

mixed

in ErpContainerCommand at line 203
protected mixed getValueFromErpData(string $key, array $data, array $mappings)

Extract value for erp data

Parameters

string $key
array $data
array $mappings

Return Value

mixed

in ErpContainerCommand at line 218
protected writeError(string $message)

Write error message to console

Parameters

string $message

in ErpContainerCommand at line 229
protected writeSuccess(string $message)

Write success message to console

Parameters

string $message

in ErpContainerCommand at line 239
protected writeLog(string $message)

Write success and error messages to log file

Parameters

string $message

in ErpContainerCommand at line 254
static protected setPage(int $page, int $maxPages, string $path)

Write max page parameter to file

Parameters

int $page
int $maxPages
string $path

in ErpContainerCommand at line 266
static protected writteDuplicates(string $path, string $duplicates)

Write duplicates to file

Parameters

string $path
string $duplicates

at line 72
protected configure()

at line 82
executeCommand()

at line 203
insert()

Insert new simple products

Exceptions

Exception

at line 225
update()

Update simple product table

Exceptions

Exception

at line 260
updateProductArrivalDates()

Update product arrival dates

Exceptions

DBALException