Completed
Push — master ( 91bd85...f52cfe )
by Camilo
02:46
created

StopPoll   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 30
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getMandatoryFields() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace unreal4u\TelegramAPI\Telegram\Methods;
6
7
use unreal4u\TelegramAPI\Abstracts\KeyboardMethods;
8
use unreal4u\TelegramAPI\Abstracts\TelegramMethods;
9
10
/**
11
 * Use this method to send point on the map. On success, the sent Message is returned.
12
 *
13
 * Objects defined as-is june 2019
14
 *
15
 * @see https://core.telegram.org/bots/api#stoppoll
16
 */
17
class StopPoll extends TelegramMethods
18
{
19
    /**
20
     * Unique identifier for the target chat or username of the target channel (in the format @channelusername). A
21
     * native poll can't be sent to a private chat
22
     * @var string
23
     */
24
    public $chat_id = '';
25
26
    /**
27
     * Identifier of the original message with the poll
28
     * @var int
29
     */
30
    public $message_id;
31
32
    /**
33
     * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to
34
     * hide keyboard or to force a reply from the user.
35
     * @var KeyboardMethods
36
     */
37
    public $reply_markup;
38
39
    public function getMandatoryFields(): array
40
    {
41
        return [
42
            'chat_id',
43
            'message_id',
44
        ];
45
    }
46
}
47