Issuer::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Facile\OpenIDClient\Issuer;
6
7
use Facile\JoseVerifier\JWK\JwksProviderInterface;
8
use Facile\OpenIDClient\Issuer\Metadata\IssuerMetadataInterface;
9
10
final class Issuer implements IssuerInterface
11
{
12
    /** @var IssuerMetadataInterface */
13
    private $metadata;
14
15
    /** @var JwksProviderInterface */
16
    private $jwksProvider;
17
18 1
    public function __construct(IssuerMetadataInterface $metadata, JwksProviderInterface $jwksProvider)
19
    {
20 1
        $this->metadata = $metadata;
21 1
        $this->jwksProvider = $jwksProvider;
22 1
    }
23
24 1
    public function getMetadata(): IssuerMetadataInterface
25
    {
26 1
        return $this->metadata;
27
    }
28
29 1
    public function getJwksProvider(): JwksProviderInterface
30
    {
31 1
        return $this->jwksProvider;
32
    }
33
}
34