Database::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
namespace SimpleDIC\Dummy;
4
5
class Database
6
{
7
    /**
8
     * @var string
9
     */
10
    private $db;
11
12
    /**
13
     * @var string
14
     */
15
    private $username;
16
17
    /**
18
     * @var string
19
     */
20
    private $password;
21
22
    /**
23
     * Database constructor.
24
     *
25
     * @param string $db
26
     * @param string $username
27
     * @param string $password
28
     */
29
    public function __construct($db, $username, $password)
30
    {
31
        $this->db = $db;
32
        $this->username = $username;
33
        $this->password = $password;
34
    }
35
}
36