IsValidInterface.php in International Phone 3.x
Namespace
Drupal\phone_international\HelpersFile
src/Helpers/IsValidInterface.phpView source
<?php
namespace Drupal\phone_international\Helpers;
/**
* Interface to validate phone number.
*/
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);
}
Interfaces
Name | Description |
---|---|
IsValidInterface | Interface to validate phone number. |