Passed
Push — master ( 246131...dcc761 )
by Jean Paul
01:17
created

ClientServerDatabaseConnector::setHost()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Coco\SourceWatcher\Core\Database\Connections;
4
5
/**
6
 * Class ClientServerDatabaseConnector
7
 * @package Coco\SourceWatcher\Core\Database\Connections
8
 */
9
abstract class ClientServerDatabaseConnector extends Connector
10
{
11
    /**
12
     * @var string
13
     */
14
    protected string $host;
15
16
    /**
17
     * @var int
18
     */
19
    protected int $port;
20
21
    /**
22
     * @var string
23
     */
24
    protected string $dbName;
25
26
    /**
27
     * @return string
28
     */
29
    public function getHost () : string
30
    {
31
        return $this->host;
32
    }
33
34
    /**
35
     * @param string $host
36
     */
37
    public function setHost ( string $host ) : void
38
    {
39
        $this->host = $host;
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getPort () : int
46
    {
47
        return $this->port;
48
    }
49
50
    /**
51
     * @param int $port
52
     */
53
    public function setPort ( int $port ) : void
54
    {
55
        $this->port = $port;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getDbName () : string
62
    {
63
        return $this->dbName;
64
    }
65
66
    /**
67
     * @param string $dbName
68
     */
69
    public function setDbName ( string $dbName ) : void
70
    {
71
        $this->dbName = $dbName;
72
    }
73
}
74