@@ -14,19 +14,19 @@ |
||
14 | 14 | |
15 | 15 | class WebhookInfo extends Entity |
16 | 16 | { |
17 | - protected $url; // String Webhook URL, may be empty if webhook is not set up |
|
18 | - protected $has_custom_certificate; // Boolean True, if a custom certificate was provided for webhook certificate checks |
|
19 | - protected $pending_update_count; // Integer Number of updates awaiting delivery |
|
20 | - protected $last_error_date; // Integer Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook |
|
21 | - protected $last_error_message; // String Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook |
|
17 | + protected $url; // String Webhook URL, may be empty if webhook is not set up |
|
18 | + protected $has_custom_certificate; // Boolean True, if a custom certificate was provided for webhook certificate checks |
|
19 | + protected $pending_update_count; // Integer Number of updates awaiting delivery |
|
20 | + protected $last_error_date; // Integer Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook |
|
21 | + protected $last_error_message; // String Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook |
|
22 | 22 | |
23 | 23 | public function __construct(array $data) |
24 | 24 | { |
25 | - $this->url = isset($data['url']) ? $data['url'] : null; |
|
26 | - $this->has_custom_certificate = isset($data['has_custom_certificate']) ? $data['has_custom_certificate'] : null; |
|
27 | - $this->pending_update_count = isset($data['pending_update_count']) ? $data['pending_update_count'] : null; |
|
28 | - $this->last_error_date = isset($data['last_error_date']) ? $data['last_error_date'] : null; |
|
29 | - $this->last_error_message = isset($data['last_error_message']) ? $data['last_error_message'] : null; |
|
25 | + $this->url = isset($data['url']) ? $data['url'] : null; |
|
26 | + $this->has_custom_certificate = isset($data['has_custom_certificate']) ? $data['has_custom_certificate'] : null; |
|
27 | + $this->pending_update_count = isset($data['pending_update_count']) ? $data['pending_update_count'] : null; |
|
28 | + $this->last_error_date = isset($data['last_error_date']) ? $data['last_error_date'] : null; |
|
29 | + $this->last_error_message = isset($data['last_error_message']) ? $data['last_error_message'] : null; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |