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

IdentityProviderResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 8
nc 1
nop 1
dl 0
loc 10
rs 10
c 1
b 0
f 0
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