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

StopPoll::getMandatoryFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 7
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
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