![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-bundle/Api/ |
<?php /** * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Bundle\Api; /** * Interface ProductOptionRepositoryInterface * @api * @since 100.0.2 */ interface ProductOptionRepositoryInterface { /** * Get option for bundle product * * @param string $sku * @param int $optionId * @return \Magento\Bundle\Api\Data\OptionInterface * @throws \Magento\Framework\Exception\NoSuchEntityException * @throws \Magento\Framework\Exception\InputException */ public function get($sku, $optionId); /** * Get all options for bundle product * * @param string $sku * @return \Magento\Bundle\Api\Data\OptionInterface[] * @throws \Magento\Framework\Exception\NoSuchEntityException * @throws \Magento\Framework\Exception\InputException */ public function getList($sku); /** * Remove bundle option * * @param \Magento\Bundle\Api\Data\OptionInterface $option * @return bool * @throws \Magento\Framework\Exception\CouldNotSaveException * @throws \Magento\Framework\Exception\InputException */ public function delete(\Magento\Bundle\Api\Data\OptionInterface $option); /** * Remove bundle option * * @param string $sku * @param int $optionId * @return bool * @throws \Magento\Framework\Exception\CouldNotSaveException * @throws \Magento\Framework\Exception\InputException */ public function deleteById($sku, $optionId); /** * Add new option for bundle product * * @param \Magento\Catalog\Api\Data\ProductInterface $product * @param \Magento\Bundle\Api\Data\OptionInterface $option * @return int * @throws \Magento\Framework\Exception\CouldNotSaveException * @throws \Magento\Framework\Exception\InputException */ public function save( \Magento\Catalog\Api\Data\ProductInterface $product, \Magento\Bundle\Api\Data\OptionInterface $option ); }