/** * Add a row of product information to the bundle, determining a requirement for the bundle to be deemed as valid * * @param ProductRow $row */ public function addProductRow(ProductRow $row) { $key = md5(serialize([$row->getProductID(), $row->getOptions()])); if (array_key_exists($key, $this->_productRows)) { $this->_productRows[$key]->increaseQuantity($row->getQuantity()); } else { $this->_productRows[$key] = $row; } }