Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BundleOption.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Bundle\Model;
7 
10 
12 {
16  const OPTION_ID = 'option_id';
17  const OPTION_QTY = 'option_qty';
18  const OPTION_SELECTIONS = 'option_selections';
25  public function getOptionId()
26  {
27  return $this->getData(self::OPTION_ID);
28  }
29 
34  public function getOptionQty()
35  {
36  return $this->getData(self::OPTION_QTY);
37  }
38 
43  public function getOptionSelections()
44  {
45  return $this->getData(self::OPTION_SELECTIONS);
46  }
47 
52  public function setOptionId($optionId)
53  {
54  return $this->setData(self::OPTION_ID, $optionId);
55  }
56 
61  public function setOptionQty($optionQty)
62  {
63  return $this->setData(self::OPTION_QTY, $optionQty);
64  }
65 
70  public function setOptionSelections(array $optionSelections)
71  {
72  return $this->setData(self::OPTION_SELECTIONS, $optionSelections);
73  }
74 
79  public function getExtensionAttributes()
80  {
81  return $this->_getExtensionAttributes();
82  }
83 
88  public function setExtensionAttributes(\Magento\Bundle\Api\Data\BundleOptionExtensionInterface $extensionAttributes)
89  {
90  return $this->_setExtensionAttributes($extensionAttributes);
91  }
92 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
setExtensionAttributes(\Magento\Bundle\Api\Data\BundleOptionExtensionInterface $extensionAttributes)
setOptionSelections(array $optionSelections)