public function getCountryCode()
    {
        $localeIso = $this->locale->getIso();

        if (isset($this->localeCountryAssociations[$localeIso])) {
            return Locale::create($this->localeCountryAssociations[$localeIso]);
        }

        $regionLocale = \Locale::getRegion($localeIso);

        return $regionLocale
            ? Locale::create($regionLocale)
            : $this->locale;
    }
public function getCountryCode()
    {
        $localeIso = $this->locale->getIso();

        if (isset($this->localeCountryAssociations[$localeIso])) {
            return Locale::create($this->localeCountryAssociations[$localeIso]);
        }

        $regionLocale = \Locale::getRegion($localeIso);

        return $regionLocale
            ? Locale::create($regionLocale)
            : $this->locale;
    }
public function getCountryCode ( ) { $ localeIso = $ this -> locale -> getIso ( ) ; if ( isset ( $ this -> localeCountryAssociations [ $ localeIso ] ) ) { return Locale :: create ( $ this -> localeCountryAssociations [ $ localeIso ] ) ; } $ regionLocale = \ Locale :: getRegion ( $ localeIso ) ; return $ regionLocale ? Locale :: create ( $ regionLocale ) : $ this -> locale ; }
Returns the ISO code of the country according to locale.

@return Locale 2-letter ISO code
Returns the ISO code of the country according to locale .