BackupResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
class BackupResponse
6
{
7
    public int $id;
8
9
    public object $database;
10
11
    public string $type;
12
13
    public string $startedAt;
14
15
    public string $completedAt;
16
17
    public object $flags;
18
19
    public object $environment;
20
21
    public object $links;
22
23
    public function __construct(object $backup)
24
    {
25
        $this->id = $backup->id;
26
        $this->database = $backup->database;
27
        $this->type = $backup->type;
28
        $this->startedAt = $backup->started_at;
29
        $this->completedAt = $backup->completed_at;
30
        $this->flags = $backup->flags;
31
        $this->environment = $backup->environment;
32
        $this->links = $backup->_links;
33
    }
34
}
35