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

SendRequest   A

Complexity

Total Complexity 1

Size/Duplication

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

1 Method

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