BackupResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

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