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 ( 84c3a7...ff5597 )
by Stan
02:46
created

KeyboardButton::setText()   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;
4
5
class KeyboardButton extends AbstractEntity
6
{
7
    const ENTITY_TYPE = 'KeyboardButton';
8
9
    /** @var string $text */
10
    protected $text;
11
12
    /** @var string $request_contact */
13
    protected $request_contact;
14
15
    /** @var string $request_location */
16
    protected $request_location;
17
18
    protected $supportedProperties = [
19
        'text'                => true,
20
        'request_contact'     => false,
21
        'request_location'    => false,
22
    ];
23
24
    /**
25
     * @return string
26
     */
27
    public function getText()
28
    {
29
        return $this->text;
30
    }
31
32
    /**
33
     * @param string $text
34
     *
35
     * @return $this
36
     */
37
    public function setText($text)
38
    {
39
        $this->text = $text;
40
41
        return $this;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getRequestContact()
48
    {
49
        return $this->request_contact;
50
    }
51
52
    /**
53
     * @param string $request_contact
54
     *
55
     * @return $this
56
     */
57
    public function setRequestContact($request_contact)
58
    {
59
        $this->request_contact = $request_contact;
60
61
        return $this;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getRequestLocation()
68
    {
69
        return $this->request_location;
70
    }
71
72
    /**
73
     * @param string $request_location
74
     *
75
     * @return $this
76
     */
77
    public function setRequestLocation($request_location)
78
    {
79
        $this->request_location = $request_location;
80
81
        return $this;
82
    }
83
}
84