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

SendAttachment   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
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 11
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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\Drivers\ReceivedMessage\Attachment;
10
11
class SendAttachment implements Command
12
{
13
    public $recipient;
14
    public $attachment;
15
16 2
    public function __construct(User $recipient, Attachment $attachment)
17
    {
18 2
        $this->recipient = $recipient;
19 2
        $this->attachment = $attachment;
20 2
    }
21
}
22