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.
Completed
Push — master ( 64a210...2d6991 )
by Stan
02:42
created

AnswerInlineQuery::setIsPersonal()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
/**
4
 * Class that represents Telegram's Bot-API "answerInlineQuery" method.
5
 *
6
 * @package Teebot (Telegram bot framework)
7
 *
8
 * @author Stanislav Drozdov <[email protected]>
9
 */
10
11
namespace Teebot\Method;
12
13
class AnswerInlineQuery extends AbstractMethod
14
{
15
    const NAME          = 'answerInlineQuery';
16
17
    const RETURN_ENTITY = null;
18
19
    protected $inline_query_id;
20
21
    protected $results;
22
23
    protected $cache_time;
24
25
    protected $is_personal;
26
27
    protected $next_offset;
28
29
    protected $supportedProperties = [
30
        'inline_query_id' => true,
31
        'results'         => true,
32
        'cache_time'      => false,
33
        'is_personal'     => false,
34
        'next_offset'     => false
35
    ];
36
37
    /**
38
     * Returns the id of query.
39
     *
40
     * @return string
41
     */
42
    public function getInlineQueryId()
43
    {
44
        return $this->inline_query_id;
45
    }
46
47
    /**
48
     * Sets inline query id.
49
     *
50
     * @param string $inline_query_id
51
     *
52
     * @return $this
53
     */
54
    public function setInlineQueryId($inline_query_id)
55
    {
56
        $this->inline_query_id = $inline_query_id;
57
58
        return $this;
59
    }
60
61
    /**
62
     * Returns result.
63
     *
64
     * @return mixed
65
     */
66
    public function getResults()
67
    {
68
        return $this->results;
69
    }
70
71
    /**
72
     * Sets result
73
     *
74
     * @param mixed $results
75
     *
76
     * @return $this
77
     */
78
    public function setResults($results)
79
    {
80
        $this->results = $results;
81
82
        return $this;
83
    }
84
85
    /**
86
     * Returns cache time.
87
     *
88
     * @return mixed
89
     */
90
    public function getCacheTime()
91
    {
92
        return $this->cache_time;
93
    }
94
95
    /**
96
     * Sets cache time.
97
     *
98
     * @param mixed $cache_time
99
     *
100
     * @return $this
101
     */
102
    public function setCacheTime($cache_time)
103
    {
104
        $this->cache_time = $cache_time;
105
106
        return $this;
107
    }
108
109
    /**
110
     * Returns is personal flag.
111
     *
112
     * @return mixed
113
     */
114
    public function getIsPersonal()
115
    {
116
        return $this->is_personal;
117
    }
118
119
    /**
120
     * Sets is personal flag
121
     *
122
     * @param mixed $is_personal
123
     *
124
     * @return $this
125
     */
126
    public function setIsPersonal($is_personal)
127
    {
128
        $this->is_personal = $is_personal;
129
130
        return $this;
131
    }
132
133
    /**
134
     * Returns next offset.
135
     *
136
     * @return mixed
137
     */
138
    public function getNextOffset()
139
    {
140
        return $this->next_offset;
141
    }
142
143
    /**
144
     * Sets next offset.
145
     *
146
     * @param mixed $next_offset
147
     *
148
     * @return $this
149
     */
150
    public function setNextOffset($next_offset)
151
    {
152
        $this->next_offset = $next_offset;
153
154
        return $this;
155
    }
156
}
157