| 1 |
<?php |
| 2 |
|
| 3 |
namespace libphonenumber; |
| 4 |
|
| 5 |
/** |
| 6 |
* Interface MatcherAPIInterface |
| 7 |
* |
| 8 |
* Internal phonenumber matching API used to isolate the underlying implementation of the |
| 9 |
* matcher and allow different implementations to be swapped in easily. |
| 10 |
* |
| 11 |
* @package libphonenumber |
| 12 |
* @internal |
| 13 |
*/ |
| 14 |
interface MatcherAPIInterface |
| 15 |
{ |
| 16 |
/** |
| 17 |
* Returns whether the given national number (a string containing only decimal digits) matches |
| 18 |
* the national number pattern defined in the given {@code PhoneNumberDesc} message. |
| 19 |
* |
| 20 |
* @param string $number |
| 21 |
* @param PhoneNumberDesc $numberDesc |
| 22 |
* @param boolean $allowPrefixMatch |
| 23 |
* @return boolean |
| 24 |
*/ |
| 25 |
public function matchNationalNumber($number, PhoneNumberDesc $numberDesc, $allowPrefixMatch); |
| 26 |
} |
| 27 |
|