Completed
Pull Request — master (#34)
by Adam
03:15
created

LogResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 6
rs 10
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
/**
6
 * Class LogResponse
7
 * @package AcquiaCloudApi\Response
8
 */
9
class LogResponse
10
{
11
12
    public $type;
13
    public $label;
14
    public $flags;
15
    public $links;
16
17
    /**
18
     * LogResponse constructor.
19
     * @param object $log
20
     */
21
    public function __construct($log)
22
    {
23
        $this->type = $log->type;
24
        $this->label = $log->label;
25
        $this->flags = $log->flags;
26
        $this->links = $log->_links;
27
    }
28
}
29