Completed
Push — master ( 87aff1...17cc82 )
by Vladimir
03:09
created

OutgoingMessage::getKeyboard()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Drivers;
6
7
use FondBot\Conversation\Keyboard;
8
9
/**
10
 * Message to be sent to receiver.
11
 */
12
interface OutgoingMessage
13
{
14
    /**
15
     * Get receiver.
16
     *
17
     * @return User
18
     */
19
    public function getRecipient(): User;
20
21
    /**
22
     * Get message text.
23
     *
24
     * @return string
25
     */
26
    public function getText(): string;
27
28
    /**
29
     * Get keyboard.
30
     *
31
     * @return Keyboard|null
32
     */
33
    public function getKeyboard(): ?Keyboard;
34
35
    /**
36
     * Get the instance as an array.
37
     *
38
     * @return array
39
     */
40
    public function toArray(): array;
41
}
42