| Conditions | 2 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function __construct(ClubCollectApiClient $client, array $response) |
||
| 36 | { |
||
| 37 | parent::__construct($client); |
||
| 38 | |||
| 39 | try |
||
| 40 | { |
||
| 41 | $this->countryCode = Cast::toOptString($response['country_code']); |
||
| 42 | $this->phoneNumber = Cast::toOptString($response['phone_number']); |
||
| 43 | } |
||
| 44 | catch (\Throwable $exception) |
||
| 45 | { |
||
| 46 | throw new ClubCollectApiException([$exception], 'Failed to create a customer phone number'); |
||
| 47 | } |
||
| 54 |