private function getBacklogNumbers($backlogs) { $numbers =
[];
foreach ($backlogs as $backlog) { $payload =
$backlog->
getPayload();
switch ($backlog->
getEvent()) { case ORMBacklogSubscriber::EVENT_ARTICLE_DELETED:
case ORMBacklogSubscriber::EVENT_ARTICLE_INSERTED:
case ORMBacklogSubscriber::EVENT_ARTICLE_UPDATED:
$query =
$this->queryFactory->
createProductIdQuery([$payload['id'
]]);
$numbers =
array_merge($numbers,
$query->
fetch());
break;
case ORMBacklogSubscriber::EVENT_VOTE_DELETED:
case ORMBacklogSubscriber::EVENT_VOTE_INSERTED:
case ORMBacklogSubscriber::EVENT_VOTE_UPDATED:
$query =
$this->queryFactory->
createProductIdQuery([$payload['articleId'
]]);
$numbers =
array_merge($numbers,
$query->
fetch());
break;
case ORMBacklogSubscriber::EVENT_VARIANT_DELETED: