getAssignedStockIds = $getAssignedStockIds; $this->stockIndexer = $stockIndexer; } /** * @return void */ public function executeFull() { $this->stockIndexer->executeFull(); } /** * @param string $sourceCode * @return void */ public function executeRow(string $sourceCode) { $this->executeList([$sourceCode]); } /** * @param array $sourceCodes */ public function executeList(array $sourceCodes) { $stockIds = $this->getAssignedStockIds->execute($sourceCodes); $this->stockIndexer->executeList($stockIds); } }