Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function getList($productSku)
 {
     $product = $this->getProduct($productSku);
     $optionCollection = $this->type->getOptionsCollection($product);
     /** @var \Magento\Bundle\Service\V1\Data\Product\Option[] $optionDtoList */
     $optionDtoList = [];
     /** @var \Magento\Bundle\Model\Option $option */
     foreach ($optionCollection as $option) {
         $optionDtoList[] = $this->optionConverter->createDataFromModel($option, $product);
     }
     return $optionDtoList;
 }