SubscriptionResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 11
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 13
rs 9.9
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