Completed
Push — master ( 1be44d...449b6f )
by Artem
02:21
created

Params::getPort()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
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
    public function __construct(string $host = 'localhost', string $port = '8844')
15
    {
16
        $this->host = $host;
17
        $this->port = $port;
18
    }
19
20
    public function getHost(): string
21
    {
22
        return $this->host;
23
    }
24
25
    public function getPort(): string
26
    {
27
        return $this->port;
28
    }
29
}
30