Passed
Pull Request — master (#156)
by Adam
07:31 queued 05:24
created

SshKeyResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 46
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
/**
6
 * Class SshKeyResponse
7
 *
8
 * @package AcquiaCloudApi\Response
9
 */
10
class SshKeyResponse
11
{
12
    /**
13
     * @var string $uuid
14
     */
15
    public $uuid;
16
17
    /**
18
     * @var string $label
19
     */
20
    public $label;
21
22
    /**
23
     * @var string $public_key
24
     */
25
    public $public_key;
26
27
    /**
28
     * @var string $fingerprint
29
     */
30
    public $fingerprint;
31
32
    /**
33
     * @var string $created_at
34
     */
35
    public $created_at;
36
37
    /**
38
     * @var object $links
39
     */
40
    public $links;
41
42
    /**
43
     * SshKeyResponse constructor.
44
     *
45
     * @param object $sshkey
46
     */
47
48
    public function __construct($sshkey)
49
    {
50
        $this->uuid = $sshkey->uuid;
51
        $this->label = $sshkey->label;
52
        $this->public_key = $sshkey->public_key;
53
        $this->fingerprint = $sshkey->fingerprint;
54
        $this->created_at = $sshkey->created_at;
55
        $this->links = $sshkey->_links;
56
    }
57
}
58