Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class PhoneNumber |
||
19 | { |
||
20 | /** |
||
21 | * Sanitize the mobile phone number for use with the cm.com Rest API |
||
22 | * |
||
23 | * @param string $number |
||
24 | * @return string |
||
25 | * @throws \UnexpectedValueException if the mobile phone number contains illegal characters or is otherwise invalid. |
||
26 | */ |
||
27 | public function sanitizePhoneNumber(string $number, $defaultRegion = 'NL'): string |
||
46 |