Completed
Push — master ( be22ff...83e3a1 )
by Alexander
20s queued 15s
created

SentWebAppMessage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 7
c 1
b 0
f 0
dl 0
loc 40
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getInlineMessageId() 0 3 1
A setInlineMessageId() 0 3 1
1
<?php
2
3
namespace TelegramBot\Api\Types;
4
5
use TelegramBot\Api\BaseType;
6
use TelegramBot\Api\TypeInterface;
7
8
class SentWebAppMessage extends BaseType implements TypeInterface
9
{
10
    /**
11
     * {@inheritdoc}
12
     *
13
     * @var array
14
     */
15
    protected static $requiredParams = [];
16
17
    /**
18
     * {@inheritdoc}
19
     *
20
     * @var array
21
     */
22
    protected static $map = [
23
        'inline_message_id' => true,
24
    ];
25
26
    /**
27
     * Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message.
28
     *
29
     * @var string|null
30
     */
31
    protected $inlineMessageId;
32
33
    /**
34
     * @return string|null
35
     */
36
    public function getInlineMessageId()
37
    {
38
        return $this->inlineMessageId;
39
    }
40
41
    /**
42
     * @param string|null $inlineMessageId
43
     * @return void
44
     */
45
    public function setInlineMessageId($inlineMessageId)
46
    {
47
        $this->inlineMessageId = $inlineMessageId;
48
    }
49
}
50