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

Issuer::getMetadata()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
crap 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