Add todo for dealing with phone without types

This commit is contained in:
Mészáros Róbert 2020-04-15 13:32:28 +03:00
parent 715c9d29a4
commit ff4f3d2bba

View file

@ -25,6 +25,7 @@ class PayerFactory
$data->name->given_name,
$data->name->surname
);
// TODO deal with phones without type instead of passing a invalid type
$phone = (isset($data->phone)) ? new PhoneWithType(
(isset($data->phone->type)) ? $data->phone->type : 'undefined',
new Phone(