1 | <?php |
||
9 | class StrictGrouping extends AbstractLeniency |
||
10 | { |
||
11 | protected static $level = 3; |
||
12 | |||
13 | /** |
||
14 | * Phone numbers accepted are PhoneNumberUtil::isValidNumber() and are grouped |
||
15 | * in a possible way for this locale. For example, a US number written as |
||
16 | * "65 02 53 00 00" and "650253 0000" are not accepted at this leniency level, whereas |
||
17 | * "650 253 0000", "650 2530000" or "6502530000" are. |
||
18 | * Numbers with more than one '/' symbol in the national significant number are also dropped at |
||
19 | * this level. |
||
20 | * |
||
21 | * Warning: This level might result in lower coverage especially for regions outside of country |
||
22 | * code "+1". If you are not sure about which level to use, email the discussion group |
||
23 | * [email protected]. |
||
24 | * |
||
25 | * @param PhoneNumber $number |
||
26 | * @param string $candidate |
||
27 | * @param PhoneNumberUtil $util |
||
28 | * @return bool |
||
29 | */ |
||
30 | 38 | public static function verify(PhoneNumber $number, $candidate, PhoneNumberUtil $util) |
|
48 | } |
||
49 |