Conditions | 2 |
Paths | 5 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | public function __construct(ClubCollectApiClient $client, array $response) |
||
45 | { |
||
46 | parent::__construct($client); |
||
47 | |||
48 | try |
||
49 | { |
||
50 | $this->address = new CustomerAddress($client, $response['address']); |
||
51 | $this->email = new CustomerEmail($client, $response['email']); |
||
52 | $this->name = new CustomerName($client, $response['name']); |
||
53 | $this->phone = new CustomerPhone($client, $response['phone']); |
||
54 | } |
||
55 | catch (\Throwable $exception) |
||
56 | { |
||
57 | throw new ClubCollectApiException([$exception], 'Failed to create a customer email address'); |
||
58 | } |
||
65 |