InsightModuleResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 25
c 2
b 0
f 0
dl 0
loc 43
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 14 1
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
class InsightModuleResponse
6
{
7
    public int $module_id;
8
9
    public string $name;
10
11
    public string $filename;
12
13
    public string $version;
14
15
    public ?string $supported_majors;
16
17
    public ?string $recommended_major;
18
19
    public string $package;
20
21
    public string $core;
22
23
    public string $project;
24
25
    public ?string $release_date;
26
27
    public object $flags;
28
29
    /**
30
     * @var array<string> $tags
31
     */
32
    public array $tags;
33
34
    public function __construct(object $module)
35
    {
36
        $this->module_id = $module->module_id;
37
        $this->name = $module->name;
38
        $this->filename = $module->filename;
39
        $this->version = $module->version;
40
        $this->supported_majors = $module->supported_majors;
41
        $this->recommended_major = $module->recommended_major;
42
        $this->package = $module->package;
43
        $this->core = $module->core;
44
        $this->project = $module->project;
45
        $this->release_date = $module->release_date;
46
        $this->flags = $module->flags;
47
        $this->tags = $module->tags;
48
    }
49
}
50