LogForwardingDestinationResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
class LogForwardingDestinationResponse
6
{
7
    public string $uuid;
8
9
    public string $label;
10
11
    public string $address;
12
13
    public string $consumer;
14
15
    public object $credentials;
16
17
    /**
18
     * @var array<string> $sources
19
     */
20
    public array $sources;
21
22
    public string $status;
23
24
    public object $flags;
25
26
    public object $health;
27
28
    public object $environment;
29
30
    public function __construct(object $destination)
31
    {
32
        $this->uuid = $destination->uuid;
33
        $this->label = $destination->label;
34
        $this->address = $destination->address;
35
        $this->consumer = $destination->consumer;
36
        $this->credentials = $destination->credentials;
37
        $this->sources = $destination->sources;
38
        $this->status = $destination->status;
39
        $this->flags = $destination->flags;
40
        $this->health = $destination->health;
41
        $this->environment = $destination->environment;
42
    }
43
}
44