Issuer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A toString() 0 5 1
A __construct() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace CustomerGauge\Cognito;
4
5
final class Issuer
6
{
7
    private $userPoolId;
8
9
    private $region;
10
11 4
    public function __construct(string $userPoolId, string $region)
12
    {
13 4
        $this->userPoolId = $userPoolId;
14 4
        $this->region = $region;
15
    }
16
17 4
    public function toString(): string
18
    {
19 4
        $url = 'https://cognito-idp.%s.amazonaws.com/%s';
20
21 4
        return sprintf($url, $this->region, $this->userPoolId);
22
    }
23
}
24