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

InlineKeyboardButton   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 103
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getText() 0 4 1
A setText() 0 6 1
A getUrl() 0 4 1
A setUrl() 0 6 1
A getCallbackData() 0 4 1
A setCallbackData() 0 6 1
A getSwitchInlineQuery() 0 4 1
A setSwitchInlineQuery() 0 6 1
1
<?php
2
3
namespace Teebot\Entity\Inline;
4
5
use Teebot\Entity\AbstractEntity;
6
7
class InlineKeyboardButton extends AbstractEntity
8
{
9
    const ENTITY_TYPE = 'InlineKeyboardButton';
10
11
    /** @var string $text */
12
    protected $text;
13
14
    /** @var string $url */
15
    protected $url;
16
17
    /** @var string $callback_data */
18
    protected $callback_data;
19
20
    /** @var string $switch_inline_query */
21
    protected $switch_inline_query;
22
23
    protected $supportedProperties = [
24
        'text'                => true,
25
        'url'                 => false,
26
        'callback_data'       => false,
27
        'switch_inline_query' => false
28
    ];
29
30
    /**
31
     * @return string
32
     */
33
    public function getText()
34
    {
35
        return $this->text;
36
    }
37
38
    /**
39
     * @param string $text
40
     *
41
     * @return $this
42
     */
43
    public function setText($text)
44
    {
45
        $this->text = $text;
46
47
        return $this;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getUrl()
54
    {
55
        return $this->url;
56
    }
57
58
    /**
59
     * @param string $url
60
     *
61
     * @return $this
62
     */
63
    public function setUrl($url)
64
    {
65
        $this->url = $url;
66
67
        return $this;
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getCallbackData()
74
    {
75
        return $this->callback_data;
76
    }
77
78
    /**
79
     * @param string $callback_data
80
     *
81
     * @return $this
82
     */
83
    public function setCallbackData($callback_data)
84
    {
85
        $this->callback_data = $callback_data;
86
87
        return $this;
88
    }
89
90
    /**
91
     * @return string
92
     */
93
    public function getSwitchInlineQuery()
94
    {
95
        return $this->switch_inline_query;
96
    }
97
98
    /**
99
     * @param string $switch_inline_query
100
     *
101
     * @return $this
102
     */
103
    public function setSwitchInlineQuery($switch_inline_query)
104
    {
105
        $this->switch_inline_query = $switch_inline_query;
106
107
        return $this;
108
    }
109
}
110