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

InlineQueryResultAbstract::setParseModeMarkdown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Teebot\Entity\Inline;
4
5
use Teebot\Entity\AbstractEntity;
6
7
abstract class InlineQueryResultAbstract extends AbstractEntity
8
{
9
    const PARSE_MODE_MARKDOWN = 'Markdown';
10
11
    const PARSE_MODE_HTML     = 'HTML';
12
13
    const RESULT_TYPE         = 'InlineQueryResultAbstract';
14
15
    protected $id;
16
    
17
    protected $title;
18
19
    protected $parse_mode;
20
21
    protected $disable_web_page_preview;
22
23
    protected $thumb_url;
24
25
    /**
26
     * @return string
27
     */
28
    public function getType()
29
    {
30
        return static::RESULT_TYPE;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function getId()
37
    {
38
        return (string) $this->id;
39
    }
40
41
    /**
42
     * @param mixed $id
43
     *
44
     * @return mixed
45
     */
46
    public function setId($id)
47
    {
48
        $this->id = $id;
49
50
        return $this;
51
    }
52
53
    /**
54
     * @return mixed
55
     */
56
    public function getTitle()
57
    {
58
        return $this->title;
59
    }
60
61
    /**
62
     * @param string $title
63
     *
64
     * @return $this
65
     */
66
    public function setTitle($title)
67
    {
68
        $this->title = $title;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @return mixed
75
     */
76
    public function getParseMode()
77
    {
78
        return $this->parse_mode;
79
    }
80
81
    /**
82
     * @param string $parse_mode
83
     *
84
     * @return $this
85
     */
86
    public function setParseMode($parse_mode)
87
    {
88
        $this->parse_mode = $parse_mode;
89
90
        return $this;
91
    }
92
93
    /**
94
     * @return $this
95
     */
96
    public function setParseModeMarkdown()
97
    {
98
        $this->parse_mode = self::PARSE_MODE_MARKDOWN;
99
100
        return $this;
101
    }
102
103
    /**
104
     * @return $this
105
     */
106
    public function setParseModeHTML()
107
    {
108
        $this->parse_mode = self::PARSE_MODE_HTML;
109
110
        return $this;
111
    }
112
113
    /**
114
     * @return string
115
     */
116
    public function getThumbUrl()
117
    {
118
        return (string) $this->thumb_url;
119
    }
120
121
    /**
122
     * @param string $thumb_url
123
     *
124
     * @return $this
125
     */
126
    public function setThumbUrl($thumb_url)
127
    {
128
        $this->thumb_url = $thumb_url;
129
130
        return $this;
131
    }
132
133
    /**
134
     * @return mixed
135
     */
136
    public function getDisableWebPagePreview()
137
    {
138
        return $this->disable_web_page_preview;
139
    }
140
141
    /**
142
     * @param mixed $disable_web_page_preview
143
     *
144
     * @return $this
145
     */
146
    public function setDisableWebPagePreview($disable_web_page_preview)
147
    {
148
        $this->disable_web_page_preview = $disable_web_page_preview;
149
150
        return $this;
151
    }
152
}