InlineKeyboardMarkup::getInlineKeyboard()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zanzara\Telegram\Type\Keyboard;
6
7
/**
8
 * This object represents an inline keyboard that appears right next to the message it belongs to.
9
 *
10
 * More on https://core.telegram.org/bots/api#inlinekeyboardmarkup
11
 */
12
class InlineKeyboardMarkup
13
{
14
15
    /**
16
     * Array of button rows, each represented by an Array of InlineKeyboardButton objects
17
     *
18
     * @var InlineKeyboardButton[][]
19
     */
20
    private $inline_keyboard;
21
22
    /**
23
     * @return InlineKeyboardButton[][]
24
     */
25
    public function getInlineKeyboard(): array
26
    {
27
        return $this->inline_keyboard;
28
    }
29
30
    /**
31
     * @param InlineKeyboardButton[][] $inline_keyboard
32
     */
33
    public function setInlineKeyboard(array $inline_keyboard): void
34
    {
35
        $this->inline_keyboard = $inline_keyboard;
36
    }
37
38
}