Configuration   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 16
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getUsername() 0 3 1
A __construct() 0 4 1
A getPassword() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Shipping;
6
7
readonly class Configuration implements ConfigurationInterface
8
{
9 1
    public function __construct(
10
        public string $username,
11
        public string $password,
12
    ) {
13 1
    }
14
15 1
    public function getUsername(): string
16
    {
17 1
        return $this->username;
18
    }
19
20 1
    public function getPassword(): string
21
    {
22 1
        return $this->password;
23
    }
24
}
25