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.

InlineQueryResultAbstract   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 125
Duplicated Lines 0 %

Importance

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

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getThumbUrl() 0 3 1
A getId() 0 3 1
A getTitle() 0 3 1
A getInputMessageContent() 0 3 1
A setInputMessageContent() 0 5 1
A setId() 0 5 1
A setTitle() 0 5 1
A getType() 0 3 1
A setReplyMarkup() 0 5 1
A getReplyMarkup() 0 3 1
A setThumbUrl() 0 5 1
1
<?php
2
3
namespace Teebot\Api\Entity\Inline\Result;
4
5
use Teebot\Api\Entity\{
6
    AbstractEntity,
7
    Inline\Input\InputMessageContentAbstract
8
};
9
10
abstract class InlineQueryResultAbstract extends AbstractEntity
11
{
12
    public const RESULT_TYPE = 'InlineQueryResultAbstract';
13
14
    protected $id;
15
16
    protected $title;
17
18
    protected $reply_markup;
19
    
20
    protected $input_message_content;
21
22
    protected $thumb_url;
23
24
    protected $builtInEntities = [
25
        'reply_markup'          => InlineKeyboardMarkup::class,
0 ignored issues
show
Bug introduced by
The type Teebot\Api\Entity\Inline...lt\InlineKeyboardMarkup was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
26
        'input_message_content' => InputMessageContentAbstract::class
27
    ];
28
29
    /**
30
     * @return string
31
     */
32
    public function getType()
33
    {
34
        return static::RESULT_TYPE;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getId()
41
    {
42
        return (string) $this->id;
43
    }
44
45
    /**
46
     * @param mixed $id
47
     *
48
     * @return mixed
49
     */
50
    public function setId($id)
51
    {
52
        $this->id = $id;
53
54
        return $this;
55
    }
56
57
    /**
58
     * @return mixed
59
     */
60
    public function getTitle()
61
    {
62
        return $this->title;
63
    }
64
65
    /**
66
     * @param string $title
67
     *
68
     * @return $this
69
     */
70
    public function setTitle($title)
71
    {
72
        $this->title = $title;
73
74
        return $this;
75
    }
76
77
    /**
78
     * @return mixed
79
     */
80
    public function getInputMessageContent()
81
    {
82
        return $this->input_message_content;
83
    }
84
85
    /**
86
     * @param mixed $input_message_content
87
     *
88
     * @return $this
89
     */
90
    public function setInputMessageContent(InputMessageContentAbstract $input_message_content)
91
    {
92
        $this->input_message_content = $input_message_content;
93
94
        return $this;
95
    }
96
97
    /**
98
     * @return mixed
99
     */
100
    public function getReplyMarkup()
101
    {
102
        return $this->reply_markup;
103
    }
104
105
    /**
106
     * @param mixed $reply_markup
107
     *
108
     * @return $this
109
     */
110
    public function setReplyMarkup($reply_markup)
111
    {
112
        $this->reply_markup = $reply_markup;
113
114
        return $this;
115
    }
116
117
    /**
118
     * @return string
119
     */
120
    public function getThumbUrl()
121
    {
122
        return (string) $this->thumb_url;
123
    }
124
125
    /**
126
     * @param string $thumb_url
127
     *
128
     * @return $this
129
     */
130
    public function setThumbUrl($thumb_url)
131
    {
132
        $this->thumb_url = $thumb_url;
133
134
        return $this;
135
    }
136
}
137