Skip to content

Commit 9254238

Browse files
author
Yu Tang
committed
MAGETWO-28256: Bundle Integration API Refactoring
- Add annotation
1 parent bf644f8 commit 9254238

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Bundle/Model/OptionRepository.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ public function save(
197197
*
198198
* @param \Magento\Catalog\Api\Data\ProductInterface $product
199199
* @param \Magento\Bundle\Api\Data\OptionInterface $option
200+
* @return $this
200201
*/
201202
protected function updateOptionSelection(
202203
\Magento\Catalog\Api\Data\ProductInterface $product,
@@ -232,7 +233,7 @@ protected function updateOptionSelection(
232233
foreach ($linksToAdd as $linkedProduct) {
233234
$this->linkManagement->addChild($product, $option->getOptionId(), $linkedProduct);
234235
}
235-
return;
236+
return $this;
236237
}
237238

238239
/**

0 commit comments

Comments
 (0)