Completed
Pull Request — master (#34)
by Adam
03:27
created

IdentityProviderResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

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

1 Method

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