Rpc::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 3
crap 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