Skip to content

Commit 89f7d95

Browse files
committed
Revert for public PR:22917
1 parent 8664064 commit 89f7d95

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

app/code/Magento/Catalog/Model/Product/Option/Type/DefaultType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ public function getProductOptions()
395395
}
396396

397397
/**
398+
* Return final chargeable price for option
399+
*
398400
* @param float $price Price of option
399401
* @param boolean $isPercent Price type - percent or fixed
400402
* @param float $basePrice For percent price type

app/code/Magento/Catalog/Model/Product/Option/Value.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ protected function _construct()
111111
}
112112

113113
/**
114+
* Add value to values array
115+
*
114116
* @codeCoverageIgnoreStart
115117
* @param mixed $value
116118
* @return $this
@@ -122,6 +124,8 @@ public function addValue($value)
122124
}
123125

124126
/**
127+
* Returns array of values
128+
*
125129
* @return array
126130
*/
127131
public function getValues()
@@ -130,6 +134,8 @@ public function getValues()
130134
}
131135

132136
/**
137+
* Set values array
138+
*
133139
* @param array $values
134140
* @return $this
135141
*/
@@ -140,6 +146,8 @@ public function setValues($values)
140146
}
141147

142148
/**
149+
* Unset all from values array
150+
*
143151
* @return $this
144152
*/
145153
public function unsetValues()
@@ -149,6 +157,8 @@ public function unsetValues()
149157
}
150158

151159
/**
160+
* Set option
161+
*
152162
* @param Option $option
153163
* @return $this
154164
*/
@@ -159,6 +169,8 @@ public function setOption(Option $option)
159169
}
160170

161171
/**
172+
* Unset option
173+
*
162174
* @return $this
163175
*/
164176
public function unsetOption()
@@ -178,6 +190,8 @@ public function getOption()
178190
}
179191

180192
/**
193+
* Set product
194+
*
181195
* @param Product $product
182196
* @return $this
183197
*/
@@ -190,6 +204,8 @@ public function setProduct($product)
190204
//@codeCoverageIgnoreEnd
191205

192206
/**
207+
* Get product
208+
*
193209
* @return Product
194210
*/
195211
public function getProduct()
@@ -201,6 +217,8 @@ public function getProduct()
201217
}
202218

203219
/**
220+
* Save array of values
221+
*
204222
* @return $this
205223
*/
206224
public function saveValues()
@@ -270,6 +288,8 @@ public function getValuesCollection(Option $option)
270288
}
271289

272290
/**
291+
* Returns values by option
292+
*
273293
* @param array $optionIds
274294
* @param int $option_id
275295
* @param int $store_id
@@ -289,6 +309,8 @@ public function getValuesByOption($optionIds, $option_id, $store_id)
289309
}
290310

291311
/**
312+
* Delete value by option
313+
*
292314
* @param int $option_id
293315
* @return $this
294316
*/
@@ -299,6 +321,8 @@ public function deleteValue($option_id)
299321
}
300322

301323
/**
324+
* Delete values by option
325+
*
302326
* @param int $option_type_id
303327
* @return $this
304328
*/

dev/tests/integration/testsuite/Magento/Bundle/Model/Product/BundlePriceAbstract.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
/**
1010
* Abstract class for testing bundle prices
11+
* @codingStandardsIgnoreStart
1112
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1213
*/
1314
abstract class BundlePriceAbstract extends \PHPUnit\Framework\TestCase
@@ -142,3 +143,4 @@ protected function addCustomOption(\Magento\Catalog\Model\Product $bundleProduct
142143
return $bundleProduct;
143144
}
144145
}
146+
// @codingStandardsIgnoreEnd

0 commit comments

Comments
 (0)