| 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->message = Cast::toManString($response['message']); |
||
| 53 | $this->sender = Cast::toManString($response['sender']); |
||
| 54 | $this->ticketId = Cast::toManString($response['ticket_id']); |
||
| 55 | } |
||
| 56 | catch (\Throwable $exception) |
||
| 57 | { |
||
| 58 | throw new ClubCollectApiException([$exception], 'Failed to create a ticket'); |
||
| 59 | } |
||
| 66 |