interface IsValidInterface in International Phone 3.x
Interface to validate phone number.
Hierarchy
- interface \Drupal\phone_international\Helpers\IsValidInterface
Expanded class hierarchy of IsValidInterface
All classes that implement IsValidInterface
File
- src/
Helpers/ IsValidInterface.php, line 8
Namespace
Drupal\phone_international\HelpersView source
interface IsValidInterface {
/**
* Full validation of a phone number.
*
* @param string $number
* Validate whether the number is valid.
*/
public function isValidNumber($number);
/**
* Format phone number.
*
* @param string $number
* Format number.
*/
public function formatNumber($number);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
IsValidInterface:: |
public | function | Format phone number. | 1 |
IsValidInterface:: |
public | function | Full validation of a phone number. | 1 |