Completed
Push — master ( 449b6f...296164 )
by Artem
02:13
created

Params::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Gockets\Model;
4
5
/**
6
 * Params for HTTP client
7
 */
8
final class Params
9
{
10
    private $host;
11
12
    private $port;
13
14 1
    public function __construct(string $host = 'localhost', string $port = '8844')
15
    {
16 1
        $this->host = $host;
17 1
        $this->port = $port;
18 1
    }
19
20 1
    public function getHost(): string
21
    {
22 1
        return $this->host;
23
    }
24
25 1
    public function getPort(): string
26
    {
27 1
        return $this->port;
28
    }
29
}
30