1 | <?php |
||
5 | class RegexBasedMatcher implements MatcherAPIInterface |
||
6 | { |
||
7 | 28 | public static function create() |
|
11 | |||
12 | /** |
||
13 | * Returns whether the given national number (a string containing only decimal digits) matches |
||
14 | * the national number pattern defined in the given {@code PhoneNumberDesc} message. |
||
15 | * |
||
16 | * @param string $nationalNumber |
||
17 | * @param PhoneNumberDesc $numberDesc |
||
18 | * @param boolean $allowPrefixMatch |
||
19 | * @return boolean |
||
20 | */ |
||
21 | 623 | public function matchesNationalNumber($nationalNumber, PhoneNumberDesc $numberDesc, $allowPrefixMatch) |
|
28 | |||
29 | /** |
||
30 | * Returns whether the given national number (a string containing only decimal digits) matches |
||
31 | * the possible number pattern defined in the given {@code PhoneNumberDesc} message. |
||
32 | * |
||
33 | * @param string $nationalNumber |
||
34 | * @param PhoneNumberDesc $numberDesc |
||
35 | * @return boolean |
||
36 | */ |
||
37 | public function matchesPossibleNumber($nationalNumber, PhoneNumberDesc $numberDesc) |
||
43 | } |
||
44 |