Config   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 25
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php declare(strict_types=1);
2
3
namespace PmgDev\DatabaseReplicator;
4
5
class Config
6
{
7
	/** @var string */
8
	public $database;
9
10
	/** @var string */
11
	public $username;
12
13
	/** @var string */
14
	public $password;
15
16
	/** @var string */
17
	public $host;
18
19
	/** @var int */
20
	public $port;
21
22
23
	public function __construct(string $database, string $username, string $password, string $host, int $port)
24
	{
25
		$this->database = $database;
26
		$this->username = $username;
27
		$this->password = $password;
28
		$this->host = $host;
29
		$this->port = $port;
30
	}
31
32
}
33