Conditions | 2 |
Paths | 6 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
50 | public function __construct(ClubCollectApiClient $client, array $response) |
||
51 | { |
||
52 | parent::__construct($client); |
||
53 | |||
54 | try |
||
55 | { |
||
56 | $this->firstName = Cast::toOptString($response['first_name']); |
||
57 | $this->infix = Cast::toOptString($response['infix']); |
||
58 | $this->lastName = Cast::toManString($response['last_name']); |
||
59 | $this->organization = Cast::toOptString($response['organization']); |
||
60 | $this->prefix = Cast::toOptString($response['prefix']); |
||
61 | } |
||
62 | catch (\Throwable $exception) |
||
63 | { |
||
64 | throw new ClubCollectApiException([$exception], 'Failed to create a customer name'); |
||
65 | } |
||
72 |