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

Source   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 40
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getAvailableClaims() 0 4 1
A getSource() 0 4 1
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