public static function getDefaultCountry()
    {
        if (null === self::$defaultCountry) {
            self::$defaultCountry = CountryQuery::create()->findOneByByDefault(true);

            if (null === self::$defaultCountry) {
                throw new \LogicException(Translator::getInstance()->trans("Cannot find a default country. Please define one."));
            }
        }

        return self::$defaultCountry;
    }
public static function getDefaultCountry()
    {
        if (null === self::$defaultCountry) {
            self::$defaultCountry = CountryQuery::create()->findOneByByDefault(true);

            if (null === self::$defaultCountry) {
                throw new \LogicException(Translator::getInstance()->trans("Cannot find a default country. Please define one."));
            }
        }

        return self::$defaultCountry;
    }
public static function getDefaultCountry ( ) { if ( null === self :: $ defaultCountry ) { self :: $ defaultCountry = CountryQuery :: create ( ) -> findOneByByDefault ( true ) ; if ( null === self :: $ defaultCountry ) { throw new \ LogicException ( Translator :: getInstance ( ) -> trans ( "Cannot find a default country. Please define one." ) ) ; } } return self :: $ defaultCountry ; }
Return the default country

@throws \LogicException if no default country is defined
Return the default country