Rpc   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
dl 0
loc 26
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getPassword() 0 3 1
A getAddress() 0 3 1
A getUser() 0 3 1
1
<?php
2
3
namespace ZenCash\Rpc;
4
5
final class Rpc
6
{
7
    private $address;
8
    private $user;
9
    private $password;
10
11 2
    public function __construct(string $address, string $user, string $password)
12
    {
13 2
        $this->address = $address;
14 2
        $this->user = $user;
15 2
        $this->password = $password;
16 2
    }
17
18 2
    public function getAddress(): string
19
    {
20 2
        return $this->address;
21
    }
22
23 2
    public function getUser(): string
24
    {
25 2
        return $this->user;
26
    }
27
28 2
    public function getPassword(): string
29
    {
30 2
        return $this->password;
31
    }
32
}
33