Passed
Push — 1.0 ( 12d132...dd1957 )
by Vladimir
06:10
created

SendRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
ccs 6
cts 6
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 4
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Drivers\Commands;
6
7
use FondBot\Drivers\Chat;
8
use FondBot\Drivers\User;
9
use FondBot\Drivers\Command;
10
11
class SendRequest implements Command
12
{
13
    public $chat;
14
    public $user;
15
    public $endpoint;
16
    public $parameters;
17
18 1
    public function __construct(Chat $chat, User $user, string $endpoint, array $parameters = [])
19
    {
20 1
        $this->chat = $chat;
21 1
        $this->user = $user;
22 1
        $this->endpoint = $endpoint;
23 1
        $this->parameters = $parameters;
24 1
    }
25
}
26