SshKeyResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 8
rs 10
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
/**
6
 * Class SshKeyResponse
7
 *
8
 * @package AcquiaCloudApi\Response
9
 */
10
class SshKeyResponse
11
{
12
    public string $uuid;
13
14
    public string $label;
15
16
    public string $public_key;
17
18
    public string $fingerprint;
19
20
    public string $created_at;
21
22
    public object $links;
23
24
    /**
25
     * SshKeyResponse constructor.
26
     */
27
28
    public function __construct(object $sshkey)
29
    {
30
        $this->uuid = $sshkey->uuid;
31
        $this->label = $sshkey->label;
32
        $this->public_key = $sshkey->public_key;
33
        $this->fingerprint = $sshkey->fingerprint;
34
        $this->created_at = $sshkey->created_at;
35
        $this->links = $sshkey->_links;
36
    }
37
}
38