public function formatForCountry($country)
    {
        if (! static::isValidCountryCode($country)) {
            throw CountryCodeException::invalid($country);
        }

        return $this->lib->formatOutOfCountryCallingNumber(
            $this->getPhoneNumberInstance(),
            $country
        );
    }
public function formatForCountry($country)
    {
        if (! static::isValidCountryCode($country)) {
            throw CountryCodeException::invalid($country);
        }

        return $this->lib->formatOutOfCountryCallingNumber(
            $this->getPhoneNumberInstance(),
            $country
        );
    }
public function formatForCountry ( $ country ) { if ( ! static :: isValidCountryCode ( $ country ) ) { throw CountryCodeException :: invalid ( $ country ) ; } return $ this -> lib -> formatOutOfCountryCallingNumber ( $ this -> getPhoneNumberInstance ( ) , $ country ) ; }
Format the phone number in a way that it can be dialled from the provided country.

@param string $country
@return string
@throws \Propaganistas\LaravelPhone\Exceptions\CountryCodeException
Format the phone number in a way that it can be dialled from the provided country .