public static function countryMismatch($number, $countries)
    {
        $countries = array_filter(is_array($countries) ? $countries : [$countries]);

        $exception = new static(
            libNumberParseException::INVALID_COUNTRY_CODE,
            'Number does not match the provided '. Str::plural('country', count($countries)).'.'
        );

        $exception->number = $number;
        $exception->countries = $countries;

        return $exception;
    }
public static function countryMismatch($number, $countries)
    {
        $countries = array_filter(is_array($countries) ? $countries : [$countries]);

        $exception = new static(
            libNumberParseException::INVALID_COUNTRY_CODE,
            'Number does not match the provided '. Str::plural('country', count($countries)).'.'
        );

        $exception->number = $number;
        $exception->countries = $countries;

        return $exception;
    }
public static function countryMismatch ( $ number , $ countries ) { $ countries = array_filter ( is_array ( $ countries ) ? $ countries : [ $ countries ] ) ; $ exception = new static ( libNumberParseException :: INVALID_COUNTRY_CODE , 'Number does not match the provided ' . Str :: plural ( 'country' , count ( $ countries ) ) . '.' ) ; $ exception -> number = $ number ; $ exception -> countries = $ countries ; return $ exception ; }
Country mismatch static constructor.

@param string $number
@param string|array $country
@return static
Country mismatch static constructor .