AccountResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 41
c 2
b 0
f 0
dl 0
loc 67
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 22 1
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
class AccountResponse
6
{
7
    public int $id;
8
9
    public string $uuid;
10
11
    public string $name;
12
13
    public string $first_name;
14
15
    public string $last_name;
16
17
    public string $last_login_at;
18
19
    public string $created_at;
20
21
    public string $mail;
22
23
    public object $phone;
24
25
    public ?string $job_title;
26
27
    public ?string $job_function;
28
29
    public ?string $company;
30
31
    public ?string $country;
32
33
    public ?string $state;
34
35
    public string $timezone;
36
37
    public string $picture_url;
38
39
    /**
40
     * @var array<string> $features
41
     */
42
    public array $features;
43
44
    public object $flags;
45
46
    public object $metadata;
47
48
    public object $links;
49
50
    public function __construct(object $account)
51
    {
52
        $this->id = $account->id;
53
        $this->uuid = $account->uuid;
54
        $this->name = $account->name;
55
        $this->first_name = $account->first_name;
56
        $this->last_name = $account->last_name;
57
        $this->last_login_at = $account->last_login_at;
58
        $this->created_at = $account->created_at;
59
        $this->mail = $account->mail;
60
        $this->phone = $account->phone;
61
        $this->job_title = $account->job_title;
62
        $this->job_function = $account->job_function;
63
        $this->company = $account->company;
64
        $this->country = $account->country;
65
        $this->state = $account->state;
66
        $this->timezone = $account->timezone;
67
        $this->picture_url = $account->picture_url;
68
        $this->features = $account->features;
69
        $this->flags = $account->flags;
70
        $this->metadata = $account->metadata;
71
        $this->links = $account->_links;
72
    }
73
}
74