Token   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getAuthenticationString() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace ekinhbayar\GitAmp\Github;
4
5
class Token implements Credentials
6
{
7
    private string $token;
8
9 19
    public function __construct(string $token)
10
    {
11 19
        $this->token = $token;
12 19
    }
13
14 7
    public function getAuthenticationString(): string
15
    {
16 7
        return $this->token;
17
    }
18
}
19