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 ( 682f51...d8d546 )
by Stan
03:16
created

InlineQueryResultArticle   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 152
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getMessageText() 0 4 1
A setMessageText() 0 6 1
A getUrl() 0 4 1
A setUrl() 0 6 1
A getHideUrl() 0 4 1
A setHideUrl() 0 6 1
A getDescription() 0 4 1
A setDescription() 0 6 1
A getThumbWidth() 0 4 1
A setThumbWidth() 0 6 1
A getThumbHeight() 0 4 1
A setThumbHeight() 0 6 1
1
<?php
2
3
namespace Teebot\Entity\Inline\Result;
4
5
class InlineQueryResultArticle extends InlineQueryResultAbstract
6
{
7
    const ENTITY_TYPE = 'InlineQueryResultArticle';
8
9
    const RESULT_TYPE = 'article';
10
11
    protected $message_text;
12
13
    protected $url;
14
15
    protected $hide_url;
16
17
    protected $description;
18
19
    protected $thumb_width;
20
21
    protected $thumb_height;
22
23
    protected $supportedProperties = [
24
        'type'                     => true,
25
        'id'                       => true,
26
        'title'                    => true,
27
        'input_message_content'    => true,
28
        'reply_markup'             => false,
29
        'url'                      => false,
30
        'hide_url'                 => false,
31
        'description'              => false,
32
        'thumb_url'                => false,
33
        'thumb_width'              => false,
34
        'thumb_height'             => false,
35
    ];
36
37
    /**
38
     * @return mixed
39
     */
40
    public function getMessageText()
41
    {
42
        return $this->message_text;
43
    }
44
45
    /**
46
     * @param mixed $message_text
47
     *
48
     * @return $this
49
     */
50
    public function setMessageText($message_text)
51
    {
52
        $this->message_text = $message_text;
53
54
        return $this;
55
    }
56
57
    /**
58
     * @return mixed
59
     */
60
    public function getUrl()
61
    {
62
        return $this->url;
63
    }
64
65
    /**
66
     * @param mixed $url
67
     *
68
     * @return $this
69
     */
70
    public function setUrl($url)
71
    {
72
        $this->url = $url;
73
74
        return $this;
75
    }
76
77
    /**
78
     * @return mixed
79
     */
80
    public function getHideUrl()
81
    {
82
        return $this->hide_url;
83
    }
84
85
    /**
86
     * @param mixed $hide_url
87
     *
88
     * @return $this
89
     */
90
    public function setHideUrl($hide_url)
91
    {
92
        $this->hide_url = $hide_url;
93
94
        return $this;
95
    }
96
97
    /**
98
     * @return mixed
99
     */
100
    public function getDescription()
101
    {
102
        return $this->description;
103
    }
104
105
    /**
106
     * @param mixed $description
107
     *
108
     * @return $this
109
     */
110
    public function setDescription($description)
111
    {
112
        $this->description = $description;
113
114
        return $this;
115
    }
116
117
    /**
118
     * @return mixed
119
     */
120
    public function getThumbWidth()
121
    {
122
        return $this->thumb_width;
123
    }
124
125
    /**
126
     * @param mixed $thumb_width
127
     *
128
     * @return $this
129
     */
130
    public function setThumbWidth($thumb_width)
131
    {
132
        $this->thumb_width = $thumb_width;
133
134
        return $this;
135
    }
136
137
    /**
138
     * @return mixed
139
     */
140
    public function getThumbHeight()
141
    {
142
        return $this->thumb_height;
143
    }
144
145
    /**
146
     * @param mixed $thumb_height
147
     *
148
     * @return $this
149
     */
150
    public function setThumbHeight($thumb_height)
151
    {
152
        $this->thumb_height = $thumb_height;
153
154
        return $this;
155
    }
156
}
157