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

OutgoingMessage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
crap 1

1 Method

Rating   Name   Duplication   Size   Complexity  
OutgoingMessage::getRecipient() 0 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