/**
  * Adds new group to payment methods for this country.
  * If some other group was registered earlier with same key, overwrites it.
  * Returns given group
  *
  * @param WebToPay_PaymentMethodGroup $group
  *
  * @return WebToPay_PaymentMethodGroup
  */
 public function addGroup(WebToPay_PaymentMethodGroup $group)
 {
     return $this->groups[$group->getKey()] = $group;
 }
 /**
  * Returns new country instance with only those payment methods, which are returns or not iban number after payment
  *
  * @param boolean $isIban
  *
  * @return WebToPay_PaymentMethodGroup
  */
 public function filterForIban($isIban = true)
 {
     $group = new WebToPay_PaymentMethodGroup($this->groupKey, $this->translations, $this->defaultLanguage);
     foreach ($this->getPaymentMethods() as $paymentMethod) {
         if ($paymentMethod->isIban() == $isIban) {
             $group->addPaymentMethod($paymentMethod);
         }
     }
     return $group;
 }