formatNational(); } public static function canSendEmailNotifications(Client $client): bool { return self::getPhoneNumber($client) != null; } protected static function getPhoneNumber(Client $client): ?string { if (!empty($client->proxy_phone)) { return $client->proxy_phone; } return $client->phone_number; } public static function getFormattedPhoneNumberLink(Client $client): string { $phone = new PhoneNumber(self::getPhoneNumber($client), 'US'); $international = $phone->formatE164(); return sprintf('tel:%s', $international); } }