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

InputContactMessageContent   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 76
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getPhoneNumber() 0 4 1
A setPhoneNumber() 0 6 1
A getFirstName() 0 4 1
A setFirstName() 0 6 1
A getLastName() 0 4 1
A setLastName() 0 6 1
1
<?php
2
3
namespace Teebot\Entity\Inline\Input;
4
5
class InputContactMessageContent extends InputMessageContent
6
{
7
    const ENTITY_TYPE = 'InputContactMessageContent';
8
9
    protected $phone_number;
10
11
    protected $first_name;
12
13
    protected $last_name;
14
15
    protected $supportedProperties = [
16
        'phone_number' => true,
17
        'first_name'   => true,
18
        'last_name'    => false
19
    ];
20
21
    /**
22
     * @return mixed
23
     */
24
    public function getPhoneNumber()
25
    {
26
        return $this->phone_number;
27
    }
28
29
    /**
30
     * @param mixed $phone_number
31
     *
32
     * @return $this
33
     */
34
    public function setPhoneNumber($phone_number)
35
    {
36
        $this->phone_number = $phone_number;
37
38
        return $this;
39
    }
40
41
    /**
42
     * @return mixed
43
     */
44
    public function getFirstName()
45
    {
46
        return $this->first_name;
47
    }
48
49
    /**
50
     * @param mixed $first_name
51
     *
52
     * @return $this
53
     */
54
    public function setFirstName($first_name)
55
    {
56
        $this->first_name = $first_name;
57
58
        return $this;
59
    }
60
61
    /**
62
     * @return mixed
63
     */
64
    public function getLastName()
65
    {
66
        return $this->last_name;
67
    }
68
69
    /**
70
     * @param mixed $last_name
71
     *
72
     * @return $this
73
     */
74
    public function setLastName($last_name)
75
    {
76
        $this->last_name = $last_name;
77
78
        return $this;
79
    }
80
}
81