Completed
Branch master (7f0c44)
by Artem
02:24
created

Params   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 20
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getHost() 0 3 1
A getPort() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Gockets\Model;
4
5
/**
6
 * Params for HTTP client
7
 *
8
 * @package Gockets\Model
9
 * @author Artem Zakharchenko <[email protected]>
10
 */
11
final class Params
12
{
13
    private $host;
14
15
    private $port;
16
17 1
    public function __construct(string $host = 'localhost', string $port = '8844')
18
    {
19 1
        $this->host = $host;
20 1
        $this->port = $port;
21 1
    }
22
23 1
    public function getHost(): string
24
    {
25 1
        return $this->host;
26
    }
27
28 1
    public function getPort(): string
29
    {
30 1
        return $this->port;
31
    }
32
}
33