public function getItems() { $result = []; foreach ($this->productCollection as $product) { $result[] = $this->itemFactory->create(['product' => $product, 'type' => $this->getType()]); } return $result; }