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

ChosenInlineResult   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 107
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getResultId() 0 4 1
A setResultId() 0 4 1
A getFrom() 0 4 1
A setFrom() 0 4 1
A getLocation() 0 4 1
A setLocation() 0 6 1
A getInlineMessageId() 0 4 1
A setInlineMessageId() 0 6 1
A getQuery() 0 4 1
A setQuery() 0 4 1
1
<?php
2
3
namespace Teebot\Entity\Inline\Result;
4
5
use Teebot\Entity\AbstractEntity;
6
use Teebot\Entity\Location;
7
use Teebot\Entity\User;
8
9
class ChosenInlineResult extends AbstractEntity
10
{
11
    const ENTITY_TYPE = 'ChosenInlineResult';
12
13
    protected $result_id;
14
15
    protected $from;
16
17
    protected $location;
18
19
    protected $inline_message_id;
20
21
    protected $query;
22
23
    protected $builtInEntities = [
24
        'from'     => User::class,
25
        'location' => Location::class
26
    ];
27
28
    /**
29
     * @return mixed
30
     */
31
    public function getResultId()
32
    {
33
        return $this->result_id;
34
    }
35
36
    /**
37
     * @param mixed $result_id
38
     */
39
    public function setResultId($result_id)
40
    {
41
        $this->result_id = $result_id;
42
    }
43
44
    /**
45
     * @return mixed
46
     */
47
    public function getFrom()
48
    {
49
        return $this->from;
50
    }
51
52
    /**
53
     * @param mixed $from
54
     */
55
    public function setFrom($from)
56
    {
57
        $this->from = $from;
58
    }
59
60
    /**
61
     * @return mixed
62
     */
63
    public function getLocation()
64
    {
65
        return $this->location;
66
    }
67
68
    /**
69
     * @param mixed $location
70
     *
71
     * @return $this
72
     */
73
    public function setLocation($location)
74
    {
75
        $this->location = $location;
76
77
        return $this;
78
    }
79
80
    /**
81
     * @return mixed
82
     */
83
    public function getInlineMessageId()
84
    {
85
        return $this->inline_message_id;
86
    }
87
88
    /**
89
     * @param mixed $inline_message_id
90
     *
91
     * @return $this
92
     */
93
    public function setInlineMessageId($inline_message_id)
94
    {
95
        $this->inline_message_id = $inline_message_id;
96
97
        return $this;
98
    }
99
100
    /**
101
     * @return mixed
102
     */
103
    public function getQuery()
104
    {
105
        return $this->query;
106
    }
107
108
    /**
109
     * @param mixed $query
110
     */
111
    public function setQuery($query)
112
    {
113
        $this->query = $query;
114
    }
115
}
116