/** * Returns array containing conditions in the collection * * Output example: * array( * 'type'=>'combine', * 'operator'=>'ALL', * 'value'=>'TRUE', * 'conditions'=>array( * {condition::asArray}, * {combine::asArray}, * {quote_item_combine::asArray} * ) * ) * * @param array $arrAttributes * @return array * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function asArray(array $arrAttributes = []) { $out = parent::asArray(); $out['aggregator'] = $this->getAggregator(); foreach ($this->getConditions() as $condition) { $out['conditions'][] = $condition->asArray(); } return $out; }