/** * Loop through currencies and add the appropriate price to the bundle * * @param Bundle $bundle * * @param array $data */ private function _addPrices(Bundle $bundle, array $data) { foreach ($this->_currencies as $currency) { $bundle->setPrice($data[Form\BundleForm::PRICE_PREFIX . strtoupper($currency)], $currency); } }