Remove country.

@param \BlackForest\PiwikBundle\Entity\PiwikCountry $country

@return boolean TRUE if this collection contained the specified element, FALSE otherwise.
8027
public function removeCountry(\BlackForest\PiwikBundle\Entity\PiwikCountry $country)
    {
        return $this->country->removeElement($country);
    }
1177165
public function setCountry($country)
    {
        if (!empty($country) && is_string($country) && ctype_print($country)) {
            $this->country = trim($country);
        }

        return $this;
    }
937067
public function isValidLocale($language, $country)
    {
        return ($this->getLanguage() === $language && $this->getCountry() === $country)
            || (empty($this->getLanguage()) && empty($this->getCountry()));
    }
1235753
public function update(Country &$country)
    {
        $data = $country->exportData();
        $endpoint = '/admin/countries/'.$country->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'country' => $data
            )
        );
        $country->setData($response['country']);
    }
1029807
protected function filterValidCountry($countries)
    {
        $result = Collection::make($countries)
                            ->filter(function ($country) {
                                try {
                                    $instance = $this->lib->parse($this->number, $country);

                                    return $this->lenient
                                        ? $this->lib->isPossibleNumber($instance, $country)
                                        : $this->lib->isValidNumberForRegion($instance, $country);
                                } catch (libNumberParseException $e) {
                                    return false;
                                }
                            })->first();

        // If we got a new result, return it.
        if ($result) {
            return $result;
        }

        // Last resort: try to detect it from an international number.
        if ($this->numberLooksInternational()) {
            $countries[] = null;
        }

        foreach ($countries as $country) {
            $instance = $this->lib->parse($this->number, $country);

            if ($this->lib->isValidNumber($instance)) {
                return $this->lib->getRegionCodeForNumber($instance);
            }
        }

        if ($countries = array_filter($countries)) {
            throw NumberParseException::countryMismatch($this->number, $countries);
        }

        throw NumberParseException::countryRequired($this->number);
    }
1093380
public function setCountryId($countryid)
	{
		if ( $countryid === $this->getCountryId() ) { return; }

		$this->_values['countryid'] = strtoupper( (string) $countryid );
		$this->setModified();
	}
52527
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceCountry deleteCommerceCountry(
		CommerceCountry commerceCountry) throws PortalException {
		return commerceCountryPersistence.remove(commerceCountry);
	}
1127770
protected static function deleteCountryByIdAsyncWithHttpInfo($country_id) 
    {
        $returnType = '';  
        $request = self::deleteCountryByIdRequest($country_id); 

        return self::getHttpClient()
            ->sendAsync($request, self::createHttpClientOption())
            ->then(
                function ($response) use ($returnType) {
                    return [null, $response->getStatusCode(), $response->getHeaders()];
                },
                function ($exception) {
                    $response = $exception->getResponse();
                    $statusCode = $response->getStatusCode();
                    throw new ApiException(
                        sprintf(
                            '[%d] Error connecting to the API (%s)',
                            $statusCode,
                            $exception->getRequest()->getUri()
                        ),
                        $statusCode,
                        $response->getHeaders(),
                        $response->getBody()
                    );
                }
            );
    }
20555
public static function findByCountryAndCode($country, $code)
    {
        $country = is_object($country) ? $country->id : $country;

        return ProvinceProxy::byCountry($country)
                            ->where('code', $code)
                            ->take(1)
                            ->get()
                            ->first();
    }
918461
public function country($country = null)
  {
    if (null === $country)
    {
      return $this->responseConfig['country'];
    }

    if (false === in_array(strtolower($country), $this->possibleLocations))
    {
      throw new InvalidArgumentException(sprintf(
        "Invalid Country-Code: %s! Possible Country-Codes: %s",
        $country,
        implode(', ', $this->possibleLocations)
      ));
    }

    $this->responseConfig['country'] = strtolower($country);

    return $this;
  }
1158382
public function remove($key)
    {
        //bufor nieaktywny
        if (!$this->isActive()) {
            return true;
        }
        //usunięcie z rejestru
        $this->getRegistry()->unsetOption($key);
        //usunięcie handlerem
        return (bool)$this->_handler->delete($key);
    }
200643
public function removeFromCache($domain = null, $locale = null) {
		if ($this->cache === null) {
			return true;
		}
		
		if ($domain === null) {
			$domain = $this->domain;
		}
		
		if ($locale === null) {
			$locale = $this->getLocale();
		}
		
		return $this->cache->removeCatalogs($locale, $domain);
	}
279392
public function checkInEu($addressOrCountry)
    {
        $country = (is_object($addressOrCountry) && method_exists($addressOrCountry, 'getCountry')) ? $addressOrCountry->getCountry() : $addressOrCountry;
        if (!is_string($country)) {
            return false;
        }

        return in_array($country, self::$euCountries);
    }
606375
public function isValidDelivery(Country $country)
    {
        return $this->getRequest()->getSession()->getSessionCart($this->getDispatcher())->isVirtual();
    }
460124
public static function is_d1nation($country)
	{
		$d1nation = false;
		if ($country)
		{
			if (!($gdb = self::getGeoDBO()))
			{
				return $d1nation;
			}

			$gdb->setQuery("SELECT COUNT(*) FROM countrygroup WHERE LOWER(countrycode) = LOWER(" . $gdb->quote($country) . ") AND countrygroup = 'D1'");
			$c = $gdb->loadResult();
			if ($c > 0)
			{
				$d1nation = true;
			}
		}
		return $d1nation;
	}
488637
public function addCountry($country)
    {
        if (!in_array($country, $this->countries)) {
            $this->countries[] = $country;
        }

        return $this;
    }
1099049
public function setCountry(\Core\Entity\Country $country = null)
    {
        $this->country = $country;

        return $this;
    }