Failed Conditions
Push — master ( 2fcdae...1d0766 )
by Florent
04:40
created

Source::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * The MIT License (MIT)
7
 *
8
 * Copyright (c) 2014-2018 Spomky-Labs
9
 *
10
 * This software may be modified and distributed under the terms
11
 * of the MIT license.  See the LICENSE file for details.
12
 */
13
14
namespace OAuth2Framework\Component\OpenIdConnect\UserInfo\Claim;
15
16
class Source
17
{
18
    /**
19
     * @var string[]
20
     */
21
    private $availableClaims = [];
22
23
    /**
24
     * @var array
25
     */
26
    private $source = [];
27
28
    /**
29
     * Source constructor.
30
     *
31
     * @param string[] $availableClaims
32
     * @param array    $source
33
     */
34
    public function __construct(array $availableClaims, array $source)
35
    {
36
        $this->availableClaims = $availableClaims;
37
        $this->source = $source;
38
    }
39
40
    /**
41
     * @return string[]
42
     */
43
    public function getAvailableClaims(): array
44
    {
45
        return $this->availableClaims;
46
    }
47
48
    /**
49
     * @return array
50
     */
51
    public function getSource(): array
52
    {
53
        return $this->source;
54
    }
55
}
56