Property | Type | Description | |
---|---|---|---|
$phoneUtil |
Method | Description | |
---|---|---|
__construct ( |
||
connectsToEmergencyNumber ( $number, $regionCode ) : boolean | Returns true if the number might be used to connect to an emergency service in the given region. | |
getSupportedRegions ( ) | ||
isEmergencyNumber ( $number, $regionCode ) : boolean | Returns true if the number exactly matches an emergency service number in the given region. |
public __construct ( |
||
$phoneNumberUtil |
public connectsToEmergencyNumber ( $number, $regionCode ) : boolean | ||
$number | String the phone number to test | |
$regionCode | String the region where the phone number is being dialed | |
return | boolean | if the number might be used to connect to an emergency service in the given region. |
public isEmergencyNumber ( $number, $regionCode ) : boolean | ||
$number | String The phone number to test | |
$regionCode | String The region where the phone number is being dialed | |
return | boolean | if the number exactly matches an emergency services number in the given region. |