IdentityProviderResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
class IdentityProviderResponse
6
{
7
    public string $uuid;
8
9
    public string $label;
10
11
    public string $idp_entity_id;
12
13
    public string $sp_entity_id;
14
15
    public string $sso_url;
16
17
    public string $certificate;
18
19
    public string $status;
20
21
    public object $links;
22
23
    public function __construct(object $idp)
24
    {
25
        $this->uuid = $idp->uuid;
26
        $this->label = $idp->label;
27
        $this->idp_entity_id = $idp->idp_entity_id;
28
        $this->sp_entity_id = $idp->sp_entity_id;
29
        $this->sso_url = $idp->sso_url;
30
        $this->certificate = $idp->certificate;
31
        $this->status = $idp->status;
32
        $this->links = $idp->_links;
33
    }
34
}
35