Total Complexity | 6 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 |
||
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 |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getDbName () : string |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * @param string $dbName |
||
68 | */ |
||
69 | public function setDbName ( string $dbName ) : void |
||
74 |