Conditions | 2 |
Paths | 5 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
45 | public function __construct(ClubCollectApiClient $client, array $response) |
||
46 | { |
||
47 | parent::__construct($client); |
||
48 | |||
49 | try |
||
50 | { |
||
51 | $this->date = Cast::toManDateTime($response['date']); |
||
52 | $this->description = Cast::toManString($response['description']); |
||
53 | $this->messageId = Cast::toManString($response['message_id']); |
||
54 | $this->type = Cast::toManString($response['type']); |
||
55 | } |
||
56 | catch (\Throwable $exception) |
||
57 | { |
||
58 | throw new ClubCollectApiException([$exception], 'Failed to create a message'); |
||
59 | } |
||
66 |