Passed
Branch 1.0 (db08ca)
by Vladimir
31:42
created

SendMessage::__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
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Drivers\Commands;
6
7
use FondBot\Drivers\User;
8
use FondBot\Drivers\Command;
9
use FondBot\Conversation\Keyboard;
10
11
class SendMessage implements Command
12
{
13
    public $recipient;
14
    public $text;
15
    public $keyboard;
16
17 3
    public function __construct(User $recipient, string $text, Keyboard $keyboard = null)
18
    {
19 3
        $this->recipient = $recipient;
20 3
        $this->text = $text;
21 3
        $this->keyboard = $keyboard;
22 3
    }
23
}
24