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

SendAttachment::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
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\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