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

InlineQueryResultGif::getGifUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Teebot\Entity\Inline\Result;
4
5
class InlineQueryResultGif extends InlineQueryResultAbstract
6
{
7
    const ENTITY_TYPE = 'InlineQueryResultGif';
8
9
    const RESULT_TYPE = 'gif';
10
11
    protected $gif_url;
12
13
    protected $gif_width;
14
15
    protected $gif_height;
16
17
    protected $caption;
18
19
    protected $supportedProperties = [
20
        'type'                     => true,
21
        'id'                       => true,
22
        'gif_url'                  => true,
23
        'gif_width'                => false,
24
        'gif_height'               => false,
25
        'thumb_url'                => true,
26
        'title'                    => false,
27
        'caption'                  => false,
28
        'reply_markup'             => false,
29
        'input_message_content'    => true,
30
    ];
31
32
    /**
33
     * @return mixed
34
     */
35
    public function getGifUrl()
36
    {
37
        return (string) $this->gif_url;
38
    }
39
40
    /**
41
     * @param string $gif_url
42
     *
43
     * @return $this
44
     */
45
    public function setGifUrl($gif_url)
46
    {
47
        $this->gif_url = $gif_url;
48
49
        return $this;
50
    }
51
52
    /**
53
     * @return int
54
     */
55
    public function getGifWidth()
56
    {
57
        return $this->gif_width;
58
    }
59
60
    /**
61
     * @param int $gif_width
62
     *
63
     * @return $this
64
     */
65
    public function setGifWidth($gif_width)
66
    {
67
        $this->gif_width = $gif_width;
68
69
        return $this;
70
    }
71
72
    /**
73
     * @return mixed
74
     */
75
    public function getGifHeight()
76
    {
77
        return $this->gif_height;
78
    }
79
80
    /**
81
     * @param int $gif_height
82
     *
83
     * @return $this
84
     */
85
    public function setGifHeight($gif_height)
86
    {
87
        $this->gif_height = $gif_height;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @return mixed
94
     */
95
    public function getCaption()
96
    {
97
        return $this->caption;
98
    }
99
100
    /**
101
     * @param mixed $caption
102
     *
103
     * @return $this
104
     */
105
    public function setCaption($caption)
106
    {
107
        $this->caption = $caption;
108
109
        return $this;
110
    }
111
}
112