OrganizationResponse::__construct()   A
last analyzed

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
cc 1
eloc 10
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 12
rs 9.9332
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
class OrganizationResponse
6
{
7
    public string $id;
8
9
    public string $uuid;
10
11
    public string $name;
12
13
    public MemberResponse $owner;
14
15
    public ?string $subscriptions_total;
16
17
    public string $admins_total;
18
19
    public string $users_total;
20
21
    public string $teams_total;
22
23
    public string $roles_total;
24
25
    public object $links;
26
27
    public function __construct(object $organization)
28
    {
29
        $this->id = $organization->id;
30
        $this->uuid = $organization->uuid;
31
        $this->name = $organization->name;
32
        $this->owner = new MemberResponse($organization->owner);
33
        $this->subscriptions_total = $organization->subscriptions_total;
34
        $this->admins_total = $organization->admins_total;
35
        $this->users_total = $organization->users_total;
36
        $this->teams_total = $organization->teams_total;
37
        $this->roles_total = $organization->roles_total;
38
        $this->links = $organization->_links;
39
    }
40
}
41