Completed
Pull Request — master (#34)
by Adam
09:18
created

IdentityProvidersResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
/**
6
 * Class IdentityProvidersResponse
7
 * @package AcquiaCloudApi\Response
8
 */
9
class IdentityProvidersResponse extends \ArrayObject
10
{
11
12
    /**
13
     * IdentityProvidersResponse constructor.
14
     * @param array $idps
15
     */
16
    public function __construct($idps)
17
    {
18
        parent::__construct(array_map(function ($idp) {
19
            return new IdentityProviderResponse($idp);
20
        }, $idps), self::ARRAY_AS_PROPS);
21
    }
22
}
23