ProductStatusesCommand
extends ContainerAwareCommand
in package
uses
LockableTrait
Class ProductStatusesCommand
Tags
Table of Contents
Properties
- $em : object
- $googleService : GoogleShoppingService
- $limit : int
- Query limit
- $offset : int
- Query offset
- $sentProductIds : array<string|int, mixed>
- $logger : mixed
- $merchantErrors : mixed
- $merchantId : bool
- $output : OutputInterface
- $sentProducts : int
- $store : bool
- $storeId : int
Methods
- configure() : mixed
- Configure command
- execute() : int|void|null
- checkDisabledProductsInLogidav() : mixed
- Checking Products statuses
- checkProducts() : mixed
- Checking Products statuses
- findErrorsInProducts() : mixed
- Checking Products statuses
- getMockedProductStatuses() : array<string|int, mixed>
- Simule la récupération des statuts des produits depuis un fichier JSONL
- processProductStatuses() : void
- sendErrorSummaryEmail() : mixed
Properties
$em
protected
object
$em
$googleService
protected
GoogleShoppingService
$googleService
$limit
Query limit
protected
int
$limit
= 50
$offset
Query offset
protected
int
$offset
= 0
$sentProductIds
protected
array<string|int, mixed>
$sentProductIds
= []
$logger
private
mixed
$logger
Tags
$merchantErrors
private
mixed
$merchantErrors
= []
$merchantId
private
bool
$merchantId
= false
$output
private
OutputInterface
$output
$sentProducts
private
int
$sentProducts
= 0
$store
private
bool
$store
= false
$storeId
private
int
$storeId
Methods
configure()
Configure command
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int|void|null
Parameters
- $input : InputInterface
- $output : OutputInterface
Tags
Return values
int|void|nullcheckDisabledProductsInLogidav()
Checking Products statuses
private
checkDisabledProductsInLogidav([mixed $nextPageToken = null ]) : mixed
Parameters
- $nextPageToken : mixed = null
Tags
checkProducts()
Checking Products statuses
private
checkProducts([mixed $nextPageToken = null ]) : mixed
Parameters
- $nextPageToken : mixed = null
findErrorsInProducts()
Checking Products statuses
private
findErrorsInProducts([mixed $nextPageToken = null ]) : mixed
Parameters
- $nextPageToken : mixed = null
getMockedProductStatuses()
Simule la récupération des statuts des produits depuis un fichier JSONL
private
getMockedProductStatuses() : array<string|int, mixed>
Return values
array<string|int, mixed>processProductStatuses()
private
processProductStatuses(array<string|int, mixed> $result) : void
Parameters
- $result : array<string|int, mixed>
sendErrorSummaryEmail()
private
sendErrorSummaryEmail() : mixed