1313 * @method $this setActions(array $value)
1414 * @method string getAggregator()
1515 * @method $this setAggregator(string $value)
16- * @method string getAggregatorOption()
16+ * @method array| string getAggregatorOption()
1717 * @method array getAggregatorOptions()
1818 * @method $this setAggregatorOption(array $value)
1919 * @method string getPrefix()
@@ -37,7 +37,6 @@ public function prepareConditionSql()
3737 {
3838 $ wheres = [];
3939 foreach ($ this ->getConditions () as $ condition ) {
40- /** @var Mage_Rule_Model_Condition_Abstract $condition */
4140 $ wheres [] = '( ' . $ condition ->prepareConditionSql () . ') ' ;
4241 }
4342
@@ -115,8 +114,8 @@ public function loadAggregatorOptions()
115114 public function getAggregatorSelectOptions ()
116115 {
117116 $ opt = [];
118- foreach ($ this ->getAggregatorOption () as $ k => $ v ) {
119- $ opt [] = ['value ' => $ k , 'label ' => $ v ];
117+ foreach ($ this ->getAggregatorOption () as $ key => $ value ) {
118+ $ opt [] = ['value ' => $ key , 'label ' => $ value ];
120119 }
121120
122121 return $ opt ;
@@ -136,8 +135,8 @@ public function getAggregatorName()
136135 public function getAggregatorElement ()
137136 {
138137 if (is_null ($ this ->getAggregator ())) {
139- foreach ($ this ->getAggregatorOption () as $ k => $ v ) {
140- $ this ->setAggregator ($ k );
138+ foreach ($ this ->getAggregatorOption () as $ key => $ value ) {
139+ $ this ->setAggregator ($ key );
141140 break ;
142141 }
143142 }
@@ -264,8 +263,8 @@ public function loadArray($arr, $key = 'conditions')
264263 $ this ->addCondition ($ cond );
265264 $ cond ->loadArray ($ condArr , $ key );
266265 }
267- } catch (Exception $ e ) {
268- Mage::logException ($ e );
266+ } catch (Exception $ exception ) {
267+ Mage::logException ($ exception );
269268 }
270269 }
271270 }
@@ -403,7 +402,7 @@ public function setJsFormObject($form)
403402 /**
404403 * Get conditions, if current prefix is undefined use 'conditions' key
405404 *
406- * @return array
405+ * @return Mage_Rule_Model_Condition_Product_Abstract[]
407406 */
408407 public function getConditions ()
409408 {
@@ -414,7 +413,7 @@ public function getConditions()
414413 /**
415414 * Set conditions, if current prefix is undefined use 'conditions' key
416415 *
417- * @param array $conditions
416+ * @param Mage_Rule_Model_Condition_Product_Abstract[] $conditions
418417 * @return $this
419418 */
420419 public function setConditions ($ conditions )
0 commit comments