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   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 79
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getText() 0 4 1
A setText() 0 6 1
A getRequestContact() 0 4 1
A setRequestContact() 0 6 1
A getRequestLocation() 0 4 1
A setRequestLocation() 0 6 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