Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ProductLinkManagementInterface.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Bundle\Api;
8 
15 {
25  public function getChildren($productSku, $optionId = null);
26 
38  public function addChildByProductSku($sku, $optionId, \Magento\Bundle\Api\Data\LinkInterface $linkedProduct);
39 
48  public function saveChild(
49  $sku,
50  \Magento\Bundle\Api\Data\LinkInterface $linkedProduct
51  );
52 
62  public function addChild(
63  \Magento\Catalog\Api\Data\ProductInterface $product,
64  $optionId,
65  \Magento\Bundle\Api\Data\LinkInterface $linkedProduct
66  );
67 
78  public function removeChild($sku, $optionId, $childSku);
79 }
$linkedProduct