You are here

interface IsValidInterface in International Phone 3.x

Interface to validate phone number.

Hierarchy

Expanded class hierarchy of IsValidInterface

All classes that implement IsValidInterface

File

src/Helpers/IsValidInterface.php, line 8

Namespace

Drupal\phone_international\Helpers
View 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

Namesort descending Modifiers Type Description Overrides
IsValidInterface::formatNumber public function Format phone number. 1
IsValidInterface::isValidNumber public function Full validation of a phone number. 1