SslCertificateResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

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