As per getDescriptionForValidNumber, but explicitly checks the validity of the number
passed in.
public getDescriptionForNumber ( |
||
$number | a valid phone number for which we want to get a text description | |
$locale | string | the language code for which the description should be written |
$userRegion | string | the region code for a given user. This region will be omitted from the description if the phone number comes from this region. It is a two-letter uppercase ISO country code as defined by ISO 3166-1. |
Résultat | string | a text description for the given language code for the given phone number, or empty string if the number passed in is invalid |