type
Gets the type of valid phone number.
Since
1.4.0
Return
the type of the phone number, or UNKNOWN if it is invalid.
Parameters
defaultRegion
region that we are expecting the number to be from. This is only used if the number being parsed is not written in international format. The country_code for the number in this case would be stored as that of the default region supplied. If the number is guaranteed to start with a '+' followed by the country calling code, then RegionCode. ZZ or null can be supplied.