SslCertificateResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 21
c 0
b 0
f 0
dl 0
loc 40
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
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