InlineQueryResultGame::setGameShortName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zanzara\Telegram\Type\InlineQueryResult;
6
7
use Zanzara\Telegram\Type\Keyboard\InlineKeyboardMarkup;
8
9
/**
10
 * Represents a Game.
11
 *
12
 * More on https://core.telegram.org/bots/api#inlinequeryresultgame
13
 */
14
class InlineQueryResultGame extends InlineQueryResult
15
{
16
17
    /**
18
     * Short name of the game
19
     *
20
     * @var string
21
     */
22
    private $game_short_name;
23
24
    /**
25
     * Optional. Inline keyboard attached to the message
26
     *
27
     * @var InlineKeyboardMarkup|null
28
     */
29
    private $reply_markup;
30
31
    /**
32
     * @return string
33
     */
34
    public function getGameShortName(): string
35
    {
36
        return $this->game_short_name;
37
    }
38
39
    /**
40
     * @param string $game_short_name
41
     */
42
    public function setGameShortName(string $game_short_name): void
43
    {
44
        $this->game_short_name = $game_short_name;
45
    }
46
47
    /**
48
     * @return InlineKeyboardMarkup|null
49
     */
50
    public function getReplyMarkup(): ?InlineKeyboardMarkup
51
    {
52
        return $this->reply_markup;
53
    }
54
55
    /**
56
     * @param InlineKeyboardMarkup|null $reply_markup
57
     */
58
    public function setReplyMarkup(?InlineKeyboardMarkup $reply_markup): void
59
    {
60
        $this->reply_markup = $reply_markup;
61
    }
62
63
}