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

InlineQueryResultPhoto::setPhotoWidth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Teebot\Entity\Inline;
4
5
class InlineQueryResultPhoto extends InlineQueryResultAbstract
6
{
7
    const ENTITY_TYPE = 'InlineQueryResultPhoto';
8
9
    const RESULT_TYPE = 'photo';
10
11
    protected $photo_url;
12
13
    protected $photo_width;
14
15
    protected $photo_height;
16
17
    protected $description;
18
19
    protected $caption;
20
21
    protected $message_text;
22
23
    protected $supportedProperties = [
24
        'type'                     => true,
25
        'id'                       => true,
26
        'photo_url'                => true,
27
        'photo_width'              => false,
28
        'photo_height'             => false,
29
        'thumb_url'                => true,
30
        'title'                    => false,
31
        'description'              => false,
32
        'caption'                  => false,
33
        'message_text'             => false,
34
        'parse_mode'               => false,
35
        'disable_web_page_preview' => false
36
    ];
37
38
    /**
39
     * @return string
40
     */
41
    public function getPhotoUrl()
42
    {
43
        return (string) $this->photo_url;
44
    }
45
46
    /**
47
     * @param string $photo_url
48
     *
49
     * @return $this
50
     */
51
    public function setPhotoUrl($photo_url)
52
    {
53
        $this->photo_url = $photo_url;
54
55
        return $this;
56
    }
57
58
    /**
59
     * @return int
60
     */
61
    public function getPhotoWidth()
62
    {
63
        return (int) $this->photo_width;
64
    }
65
66
    /**
67
     * @param int $photo_width
68
     *
69
     * @return $this
70
     */
71
    public function setPhotoWidth($photo_width)
72
    {
73
        $this->photo_width = $photo_width;
74
75
        return $this;
76
    }
77
78
    /**
79
     * @return int
80
     */
81
    public function getPhotoHeight()
82
    {
83
        return (int) $this->photo_height;
84
    }
85
86
    /**
87
     * @param int $photo_height
88
     *
89
     * @return $this
90
     */
91
    public function setPhotoHeight($photo_height)
92
    {
93
        $this->photo_height = $photo_height;
94
95
        return $this;
96
    }
97
98
    /**
99
     * @return mixed
100
     */
101
    public function getDescription()
102
    {
103
        return $this->description;
104
    }
105
106
    /**
107
     * @param string $description
108
     *
109
     * @return $this
110
     */
111
    public function setDescription($description)
112
    {
113
        $this->description = $description;
114
115
        return $this;
116
    }
117
118
    /**
119
     * @return mixed
120
     */
121
    public function getCaption()
122
    {
123
        return $this->caption;
124
    }
125
126
    /**
127
     * @param string $caption
128
     *
129
     * @return $this
130
     */
131
    public function setCaption($caption)
132
    {
133
        $this->caption = $caption;
134
135
        return $this;
136
    }
137
138
    /**
139
     * @return mixed
140
     */
141
    public function getMessageText()
142
    {
143
        return $this->message_text;
144
    }
145
146
    /**
147
     * @param string $message_text
148
     *
149
     * @return $this
150
     */
151
    public function setMessageText($message_text)
152
    {
153
        $this->message_text = $message_text;
154
155
        return $this;
156
    }
157
}
158