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

LogForwardingDestinationResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 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