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.

InlineQuery   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 81
Duplicated Lines 0 %

Importance

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

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getQuery() 0 3 1
A setFrom() 0 3 1
A getFrom() 0 3 1
A getId() 0 3 1
A setOffset() 0 3 1
A setQuery() 0 3 1
A setId() 0 3 1
A getOffset() 0 3 1
1
<?php
2
3
namespace Teebot\Api\Entity\Inline;
4
5
use Teebot\Api\Entity\AbstractEntity;
6
use Teebot\Api\Entity\Location;
7
use Teebot\Api\Entity\User;
8
9
class InlineQuery extends AbstractEntity
10
{
11
    const ENTITY_TYPE = 'InlineQuery';
12
13
    protected $id;
14
15
    protected $from;
16
17
    protected $location;
18
19
    protected $query;
20
21
    protected $offset;
22
23
    protected $builtInEntities = [
24
        'from'     => User::class,
25
        'location' => Location::class
26
    ];
27
28
    /**
29
     * @return mixed
30
     */
31
    public function getId()
32
    {
33
        return $this->id;
34
    }
35
36
    /**
37
     * @param mixed $id
38
     */
39
    public function setId($id)
40
    {
41
        $this->id = $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 getQuery()
64
    {
65
        return $this->query;
66
    }
67
68
    /**
69
     * @param mixed $query
70
     */
71
    public function setQuery($query)
72
    {
73
        $this->query = $query;
74
    }
75
76
    /**
77
     * @return mixed
78
     */
79
    public function getOffset()
80
    {
81
        return $this->offset;
82
    }
83
84
    /**
85
     * @param mixed $offset
86
     */
87
    public function setOffset($offset)
88
    {
89
        $this->offset = $offset;
90
    }
91
}
92