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.

ChosenInlineResult   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 105
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 105
rs 10
c 0
b 0
f 0
wmc 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getLocation() 0 3 1
A getQuery() 0 3 1
A setInlineMessageId() 0 5 1
A getResultId() 0 3 1
A setQuery() 0 3 1
A setLocation() 0 5 1
A setFrom() 0 3 1
A getInlineMessageId() 0 3 1
A setResultId() 0 3 1
A getFrom() 0 3 1
1
<?php
2
3
namespace Teebot\Api\Entity\Inline\Result;
4
5
use Teebot\Api\Entity\{
6
    AbstractEntity, Location, User
7
};
8
9
class ChosenInlineResult extends AbstractEntity
10
{
11
    public 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