InvitationResponse::__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 InvitationResponse
6
{
7
    public string $uuid;
8
9
    public string $email;
10
11
    public MemberResponse $author;
12
13
    public object $applications;
14
15
    public object $organization;
16
17
    /**
18
     * @var array<object> $roles
19
     */
20
    public array $roles;
21
22
    public TeamResponse $team;
23
24
    public string $created_at;
25
26
    public string $token;
27
28
    public object $flags;
29
30
    public object $links;
31
32
    public function __construct(object $invitation)
33
    {
34
        $this->uuid = $invitation->uuid;
35
        $this->email = $invitation->email;
36
        $this->author = new MemberResponse($invitation->author);
37
        $this->applications = $invitation->applications;
38
        $this->organization = $invitation->organization;
39
        $this->roles = $invitation->roles;
40
        $this->team = new TeamResponse($invitation->team);
41
        $this->created_at = $invitation->created_at;
42
        $this->token = $invitation->token;
43
        $this->flags = $invitation->flags;
44
        $this->links = $invitation->_links;
45
    }
46
}
47