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