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.

SendDocument::getChatId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Class that represents Telegram's Bot-API "sendDocument" method.
5
 *
6
 * @package Teebot (Telegram bot framework)
7
 *
8
 * @author Stanislav Drozdov <[email protected]>
9
 */
10
11
namespace Teebot\Api\Method;
12
13
use Teebot\Api\Entity\Message;
14
use Teebot\Api\Traits\File;
15
use Teebot\Api\Entity\InputFile;
16
17
class SendDocument extends AbstractMethod
18
{
19
    use File;
20
21
    const NAME          = 'sendDocument';
22
23
    const RETURN_ENTITY = Message::class;
24
25
    protected $chat_id;
26
27
    protected $document;
28
29
    protected $caption;
30
31
    protected $disable_notification;
32
33
    protected $reply_to_message_id;
34
35
    protected $reply_markup;
36
37
    protected $supportedProperties = [
38
        'chat_id'  => true,
39
        'document' => true,
40
        'caption'  => false,
41
        'disable_notification' => false,
42
        'reply_to_message_id' => false,
43
        'reply_markup' => false
44
    ];
45
46
    /**
47
     * @return mixed
48
     */
49
    public function getChatId()
50
    {
51
        return $this->chat_id;
52
    }
53
54
    /**
55
     * @param mixed $chat_id
56
     *
57
     * @return $this
58
     */
59
    public function setChatId($chat_id)
60
    {
61
        $this->chat_id = $chat_id;
62
63
        return $this;
64
    }
65
66
    /**
67
     * @return \CURLFile|string
0 ignored issues
show
Bug introduced by
The type CURLFile 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...
68
     */
69
    public function getDocument()
70
    {
71
        return $this->document;
72
    }
73
74
    /**
75
     * @param string $document
76
     *
77
     * @return $this
78
     */
79
    public function setDocument($document)
80
    {
81
        $this->document = $this->initInputFile($document);
82
83
        return $this;
84
    }
85
}
86