Passed
Push — master ( 23fcc1...e399e4 )
by Adam
04:08 queued 11s
created

LogForwardingDestinationResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 12
rs 9.9332
c 1
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
/**
6
 * Class LogForwardingDestinationResponse
7
 * @package AcquiaCloudApi\Response
8
 */
9
class LogForwardingDestinationResponse
10
{
11
12
    public $uuid;
13
    public $label;
14
    public $address;
15
    public $consumer;
16
    public $credentials;
17
    public $sources;
18
    public $status;
19
    public $flags;
20
    public $health;
21
    public $environment;
22
23
    /**
24
     * LogForwardingDestinationResponse constructor.
25
     * @param object $destination
26
     */
27
    public function __construct($destination)
28
    {
29
        $this->uuid = $destination->uuid;
30
        $this->label = $destination->label;
31
        $this->address = $destination->address;
32
        $this->consumer = $destination->consumer;
33
        $this->credentials = $destination->credentials;
34
        $this->sources = $destination->sources;
35
        $this->status = $destination->status;
36
        $this->flags = $destination->flags;
37
        $this->health = $destination->health;
38
        $this->environment = $destination->environment;
39
    }
40
}
41