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

EditMessageCaption   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 102
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 8
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 102
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getChatId() 0 4 1
A setChatId() 0 6 1
A getMessageId() 0 4 1
A setMessageId() 0 6 1
A getInlineMessageId() 0 4 1
A setInlineMessageId() 0 6 1
A getCaption() 0 4 1
A setCaption() 0 6 1
1
<?php
2
3
/**
4
 * Class that represents Telegram's Bot-API "editMessageCaption" method.
5
 *
6
 * @package Teebot (Telegram bot framework)
7
 *
8
 * @author  Stanislav Drozdov <[email protected]>
9
 */
10
11
namespace Teebot\Method\Update;
12
13
use Teebot\Entity\Message;
14
15
class EditMessageCaption extends AbstractMethod
16
{
17
    const NAME          = 'editMessageCaption';
18
19
    const RETURN_ENTITY = Message::class;
20
21
    protected $chat_id;
22
23
    protected $message_id;
24
25
    protected $inline_message_id;
26
27
    protected $caption;
28
29
    protected $supportedProperties = [
30
        'chat_id'           => false,
31
        'message_id'        => false,
32
        'inline_message_id' => false,
33
        'caption'           => false,
34
        'reply_markup'      => false
35
    ];
36
37
    /**
38
     * @return mixed
39
     */
40
    public function getChatId()
41
    {
42
        return $this->chat_id;
43
    }
44
45
    /**
46
     * @param mixed $chat_id
47
     *
48
     * @return $this
49
     */
50
    public function setChatId($chat_id)
51
    {
52
        $this->chat_id = $chat_id;
53
54
        return $this;
55
    }
56
57
    /**
58
     * @return mixed
59
     */
60
    public function getMessageId()
61
    {
62
        return $this->message_id;
63
    }
64
65
    /**
66
     * @param mixed $message_id
67
     *
68
     * @return $this
69
     */
70
    public function setMessageId($message_id)
71
    {
72
        $this->message_id = $message_id;
73
74
        return $this;
75
    }
76
77
    /**
78
     * @return mixed
79
     */
80
    public function getInlineMessageId()
81
    {
82
        return $this->inline_message_id;
83
    }
84
85
    /**
86
     * @param mixed $inline_message_id
87
     *
88
     * @return $this
89
     */
90
    public function setInlineMessageId($inline_message_id)
91
    {
92
        $this->inline_message_id = $inline_message_id;
93
94
        return $this;
95
    }
96
97
    /**
98
     * @return mixed
99
     */
100
    public function getCaption()
101
    {
102
        return $this->caption;
103
    }
104
105
    /**
106
     * @param mixed $caption
107
     *
108
     * @return $this
109
     */
110
    public function setCaption($caption)
111
    {
112
        $this->caption = $caption;
113
114
        return $this;
115
    }
116
}
117