InsightCountResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 13
c 1
b 0
f 0
dl 0
loc 22
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
class InsightCountResponse
6
{
7
    public string $name;
8
9
    public int $pass;
10
11
    public int $fail;
12
13
    public int $ignored;
14
15
    public int $total;
16
17
    public int $percent;
18
19
    public function __construct(string $name, object $insightCount)
20
    {
21
        $this->name = $name;
22
        $this->pass = $insightCount->pass;
23
        $this->fail = $insightCount->fail;
24
        $this->ignored = $insightCount->ignored;
25
        $this->total = $insightCount->total;
26
        $this->percent = $insightCount->percent;
27
    }
28
}
29