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