Passed
Push — master ( 8f19c5...cae16c )
by
unknown
02:48 queued 32s
created

CodebaseResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
class CodebaseResponse
6
{
7
    public string $id;
8
9
    public string $label;
10
11
    public string $region;
12
13
    public string $vcs_url;
14
15
    public string $repository_id;
16
17
    public string $created_at;
18
19
    public string $updated_at;
20
21
    public string $description;
22
23
    public ?object $flags = null;
24
25
    public string $hash;
26
27
    public int $applications_total;
28
29
    public object $links;
30
31
    public ?object $embedded = null;
32
33
    /**
34
     * CodebaseResponse constructor.
35
     */
36
    public function __construct(object $codebase)
37
    {
38
        $this->id = $codebase->id;
39
        $this->label = $codebase->label;
40
        $this->region = $codebase->region;
41
        $this->vcs_url = $codebase->vcs_url;
42
        $this->repository_id = $codebase->repository_id;
43
        $this->created_at = $codebase->created_at;
44
        $this->updated_at = $codebase->updated_at;
45
        $this->description = $codebase->description;
46
        $this->flags = $codebase->flags;
47
        $this->hash = $codebase->hash;
48
        $this->applications_total = $codebase->applications_total;
49
        $this->links = $codebase->_links;
50
        $this->embedded = $codebase->_embedded ?? null;
51
    }
52
}
53