GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

GetUpdates::setTimeout()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 5
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Class that represents Telegram's Bot-API "getUpdates" method.
5
 *
6
 * @package Teebot (Telegram bot framework)
7
 *
8
 * @author Stanislav Drozdov <[email protected]>
9
 */
10
11
namespace Teebot\Api\Method;
12
13 View Code Duplication
class GetUpdates extends AbstractMethod
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
14
{
15
    const NAME = 'getUpdates';
16
17
    protected $offset;
18
19
    protected $limit   = 1;
20
21
    protected $timeout = 3;
22
23
    protected $supportedProperties = [
24
        'offset'  => false,
25
        'limit'   => false,
26
        'timeout' => false
27
    ];
28
29
    /**
30
     * @return mixed
31
     */
32
    public function getOffset()
33
    {
34
        return $this->offset;
35
    }
36
37
    /**
38
     * @param mixed $offset
39
     *
40
     * @return $this
41
     */
42
    public function setOffset($offset)
43
    {
44
        $this->offset = $offset;
45
46
        return $this;
47
    }
48
49
    /**
50
     * @return int
51
     */
52
    public function getLimit()
53
    {
54
        return $this->limit;
55
    }
56
57
    /**
58
     * @param int $limit
59
     *
60
     * @return $this
61
     */
62
    public function setLimit($limit)
63
    {
64
        $this->limit = $limit;
65
66
        return $this;
67
    }
68
69
    /**
70
     * @return int
71
     */
72
    public function getTimeout()
73
    {
74
        return $this->timeout;
75
    }
76
77
    /**
78
     * @param int $timeout
79
     *
80
     * @return $this
81
     */
82
    public function setTimeout($timeout)
83
    {
84
        $this->timeout = $timeout;
85
86
        return $this;
87
    }
88
}
89