/** * Adds new country to payment methods. If some other country with same code was registered earlier, overwrites it. * Returns added country instance * * @param WebToPay_PaymentMethodCountry $country * * @return WebToPay_PaymentMethodCountry */ public function addCountry(WebToPay_PaymentMethodCountry $country) { return $this->countries[$country->getCode()] = $country; }