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

InlineQueryResultDocument::setDocumentUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Teebot\Entity\Inline\Result;
4
5
class InlineQueryResultDocument extends InlineQueryResultAbstract
6
{
7
    const ENTITY_TYPE   = 'InlineQueryResultDocument';
8
9
    const RESULT_TYPE   = 'document';
10
11
    const MIME_TYPE_PDF = 'application/pdf';
12
13
    const MIME_TYPE_ZIP = 'application/zip';
14
15
    protected $document_url;
16
17
    protected $mime_type;
18
19
    protected $description;
20
21
    /**
22
     * @return mixed
23
     */
24
    public function getDocumentUrl()
25
    {
26
        return $this->document_url;
27
    }
28
29
    /**
30
     * @param mixed $document_url
31
     *
32
     * @return $this
33
     */
34
    public function setDocumentUrl($document_url)
35
    {
36
        $this->document_url = $document_url;
37
38
        return $this;
39
    }
40
41
    /**
42
     * @return mixed
43
     */
44
    public function getMimeType()
45
    {
46
        return $this->mime_type;
47
    }
48
49
    /**
50
     * @param mixed $mime_type
51
     *
52
     * @return $this
53
     */
54
    public function setMimeType($mime_type)
55
    {
56
        $this->mime_type = $mime_type;
57
58
        return $this;
59
    }
60
61
    /**
62
     * @return mixed
63
     */
64
    public function getDescription()
65
    {
66
        return $this->description;
67
    }
68
69
    /**
70
     * @param mixed $description
71
     *
72
     * @return $this
73
     */
74
    public function setDescription($description)
75
    {
76
        $this->description = $description;
77
78
        return $this;
79
    }
80
}
81