Passed
Push — master ( 904589...078d26 )
by Thomas Mauro
02:52
created

Issuer   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 75%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
dl 0
loc 31
ccs 6
cts 8
cp 0.75
rs 10
c 1
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getMetadata() 0 3 1
A getJwks() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace TMV\OpenIdClient;
6
7
use Jose\Component\Core\JWKSet;
8
use TMV\OpenIdClient\Model\IssuerMetadataInterface;
9
10
class Issuer implements IssuerInterface
11
{
12
    /** @var IssuerMetadataInterface */
13
    private $metadata;
14
15
    /** @var JWKSet */
16
    private $jwks;
17
18
    /**
19
     * Issuer constructor.
20
     *
21
     * @param IssuerMetadataInterface $metadata
22
     * @param JWKSet $jwks
23
     */
24 1
    public function __construct(IssuerMetadataInterface $metadata, JWKSet $jwks)
25
    {
26 1
        $this->metadata = $metadata;
27 1
        $this->jwks = $jwks;
28 1
    }
29
30 1
    public function getMetadata(): IssuerMetadataInterface
31
    {
32 1
        return $this->metadata;
33
    }
34
35
    /**
36
     * @return JWKSet
37
     */
38
    public function getJwks(): JWKSet
39
    {
40
        return $this->jwks;
41
    }
42
}
43