InsightCountResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 8
rs 10
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