SyncStockCommand
extends ContainerAwareCommand
in package
uses
LockableTrait
FinalYes
Class SyncStockCommand
Table of Contents
Properties
- $dbConnection : mixed
- $em : EntityManager
- $firstRun : mixed
- $limit : int
- $page : mixed
- $productApi : ProductApi|object
- $logService : LogService|null
- $productInventoryService : ProductInventoryService
Methods
- __construct() : mixed
- SyncStockCommand constructor.
- configure() : mixed
- Configure command
- execute() : mixed
Properties
$dbConnection
protected
mixed
$dbConnection
Tags
$em
protected
EntityManager
$em
$firstRun
protected
mixed
$firstRun
= 0
Tags
$limit
protected
int
$limit
= 500
$page
protected
mixed
$page
= 1
Tags
$productApi
protected
ProductApi|object
$productApi
$logService
private
LogService|null
$logService
$productInventoryService
private
ProductInventoryService
$productInventoryService
Methods
__construct()
SyncStockCommand constructor.
public
__construct([null $name = null ][, ProductInventoryService|null $productInventoryService = null ][, LogService $logService = null ]) : mixed
Parameters
- $name : null = null
- $productInventoryService : ProductInventoryService|null = null
- $logService : LogService = null
configure()
Configure command
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
- $input : InputInterface
- $output : OutputInterface