|
|
@@ -46,7 +46,7 @@ public final class PhoneNumberFactory {
|
|
46
|
46
|
* @return a new phone number object
|
|
47
|
47
|
* @throws InvalidPhoneNumberFormatException - thrown if phoneNumberString does not match acceptable format
|
|
48
|
48
|
*/ // TODO - Add throws statement to method signature
|
|
49
|
|
- public static PhoneNumber createPhoneNumber(String phoneNumberString) {
|
|
50
|
|
- return null;
|
|
|
49
|
+ public static PhoneNumber createPhoneNumber(String phoneNumberString)throws InvalidPhoneNumberFormatException {
|
|
|
50
|
+ return new PhoneNumber(phoneNumberString);
|
|
51
|
51
|
}
|
|
52
|
52
|
}
|