You are here

IsValidInterface.php in International Phone 3.x

File

src/Helpers/IsValidInterface.php
View 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

Namesort descending Description
IsValidInterface Interface to validate phone number.