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

SendMessage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 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