Geography.php
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);
    }
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);
    }
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 ) ; }
Gets whether the country or address are in the EU.

@param mixed $addressOrCountry
@return bool
Gets whether the country or address are in the EU .