| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function __construct(ClubCollectApiClient $client, array $response) |
||
| 31 | { |
||
| 32 | parent::__construct($client); |
||
| 33 | |||
| 34 | try |
||
| 35 | { |
||
| 36 | $this->emailAddress = Cast::toOptString($response['email_address']); |
||
| 37 | } |
||
| 38 | catch (\Throwable $exception) |
||
| 39 | { |
||
| 40 | throw new ClubCollectApiException([$exception], 'Failed to create a customer email address'); |
||
| 41 | } |
||
| 48 |