6 declare(strict_types=1);
23 private $sourceRepository;
28 private $bulkSessionProductsStorage;
33 private $searchCriteriaBuilder;
38 private $getSourceCodesBySkus;
54 $this->bulkSessionProductsStorage = $bulkSessionProductsStorage;
56 $this->getSourceCodesBySkus = $getSourceCodesBySkus;
65 return $this->sourceRepository->getList()->getItems();
74 $skus = $this->bulkSessionProductsStorage->getProductsSkus();
75 $sourceCodes = $this->getSourceCodesBySkus->execute(
$skus);
93 return count($this->bulkSessionProductsStorage->getProductsSkus());
__construct(SourceRepositoryInterface $sourceRepository, SearchCriteriaBuilder $searchCriteriaBuilder, GetSourceCodesBySkusInterface $getSourceCodesBySkus, BulkSessionProductsStorage $bulkSessionProductsStorage)
foreach($websiteCodes as $websiteCode) $skus