1 | <?php |
||
15 | class WebhookInfo extends Entity |
||
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 |
||
22 | |||
23 | public function __construct(array $data) |
||
31 | |||
32 | /** |
||
33 | * Webhook URL, may be empty if webhook is not set up. |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getUrl() |
||
41 | |||
42 | /** |
||
43 | * True, if a custom certificate was provided for webhook certificate checks. |
||
44 | * |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function getHasCustomCertificate() |
||
51 | |||
52 | /** |
||
53 | * Number of updates awaiting delivery. |
||
54 | * |
||
55 | * @return int |
||
56 | */ |
||
57 | public function getPendingUpdateCount() |
||
61 | |||
62 | /** |
||
63 | * Optional. |
||
64 | * Unix time for the most recent error that happened when trying to deliver an update via webhook. |
||
65 | * |
||
66 | * @return int |
||
67 | */ |
||
68 | public function getLastErrorDate() |
||
72 | |||
73 | /** |
||
74 | * Optional. |
||
75 | * Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook. |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getLastErrorMessage() |
||
83 | } |
||
84 |