SubscriptionResponse   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 23
c 1
b 0
f 0
dl 0
loc 37
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
class SubscriptionResponse
6
{
7
    public int $id;
8
9
    public string $uuid;
10
11
    public string $name;
12
13
    public ?string $start_at;
14
15
    public string $expire_at;
16
17
    public object $product;
18
19
    public int $applications_total;
20
21
    public int $applications_used;
22
23
    public object $organization;
24
25
    public object $flags;
26
27
    public object $links;
28
29
    public function __construct(object $subscription)
30
    {
31
        $this->id = $subscription->id;
32
        $this->uuid = $subscription->uuid;
33
        $this->name = $subscription->name;
34
        $this->start_at = $subscription->start_at;
35
        $this->expire_at = $subscription->expire_at;
36
        $this->product = $subscription->product;
37
        $this->applications_total = $subscription->applications_total;
38
        $this->applications_used = $subscription->applications_used;
39
        $this->organization = $subscription->organization;
40
        $this->flags = $subscription->flags;
41
        $this->links = $subscription->_links;
42
    }
43
}
44