Completed
Pull Request — master (#526)
by
unknown
13:26
created

Webhook   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 10
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A relations() 0 4 1
1
<?php
2
3
namespace Telegram\Bot\Objects;
4
5
/**
6
 * Class Webhook
7
 *
8
 * @method string       getUrl()                    Webhook URL, may be empty if webhook is not set up
9
 * @method bool         getHasCustomCertificate()   True, if a custom certificate was provided for webhook certificate checks
10
 * @method int          getPendingUpdateCount()     Number of updates awaiting delivery
11
 * @method int          getLastErrorDate()          Optional. Unix time for the most recent error that happened when
12
 *                                                      trying to deliver an update via webhook
13
 * @method string       getLastErrorMessage()       Optional. Error message in human-readable format for the most
14
 *                                                      recent error that happened when trying to deliver an update via webhook
15
 * @method int          getMaxConnections()         Optional. Maximum allowed number of simultaneous HTTPS connections
16
 *                                                      to the webhook for update delivery
17
 * @method array|string getAllowedUpdates()         Optional. A list of update types the bot is subscribed to.
18
 *                                                      Defaults to all update types
19
 *
20
 * @package Telegram\Bot\Objects
21
 * @link https://core.telegram.org/bots/api#webhookinfo
22
 */
23
class Webhook extends BaseObject
24
{
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function relations()
29
    {
30
        return [];
31
    }
32
}
33