/**
  * Retrieve downloadable links option
  *
  * @param ProductOptionInterface $productOption
  * @return array
  */
 protected function getDownloadableLinks(ProductOptionInterface $productOption)
 {
     if ($productOption && $productOption->getExtensionAttributes() && $productOption->getExtensionAttributes()->getDownloadableOption()) {
         return $productOption->getExtensionAttributes()->getDownloadableOption()->getDownloadableLinks();
     }
     return [];
 }
 /**
  * Retrieve bundle options
  *
  * @param ProductOptionInterface $productOption
  * @return array
  */
 protected function getBundleOptions(ProductOptionInterface $productOption)
 {
     if ($productOption && $productOption->getExtensionAttributes() && $productOption->getExtensionAttributes()->getBundleOptions()) {
         return $productOption->getExtensionAttributes()->getBundleOptions();
     }
     return [];
 }
 /**
  * Retrieve configurable item options
  *
  * @param ProductOptionInterface $productOption
  * @return array
  */
 protected function getConfigurableItemOptions(ProductOptionInterface $productOption)
 {
     if ($productOption && $productOption->getExtensionAttributes() && $productOption->getExtensionAttributes()->getConfigurableItemOptions()) {
         return $productOption->getExtensionAttributes()->getConfigurableItemOptions();
     }
     return [];
 }