Completed
Pull Request — master (#34)
by Adam
08:58
created

CertificateResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 13
rs 9.9332
c 1
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
/**
6
 * Class CertificateResponse
7
 * @package AcquiaCloudApi\Response
8
 */
9
class CertificateResponse
10
{
11
12
    public $id;
13
    public $label;
14
    public $certificate;
15
    public $private_key;
16
    public $ca;
17
    public $flags;
18
    public $expires_at;
19
    public $domains;
20
    public $environment;
21
    public $links;
22
23
    /**
24
     * CertificateResponse constructor.
25
     * @param object $certificate
26
     */
27
    public function __construct($certificate)
28
    {
29
30
        $this->id = $certificate->id;
31
        $this->label = $certificate->label;
32
        $this->certificate = $certificate->certificate;
33
        $this->private_key = $certificate->private_key;
34
        $this->ca = $certificate->ca;
35
        $this->flags = $certificate->flags;
36
        $this->expires_at = $certificate->expires_at;
37
        $this->domains = $certificate->domains;
38
        $this->environment = $certificate->environment;
39
        $this->links = $certificate->_links;
40
    }
41
}
42