Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
63.64% covered (warning)
63.64%
7 / 11
63.64% covered (warning)
63.64%
7 / 11
CRAP
0.00% covered (danger)
0.00%
0 / 1
HostDbConfig
63.64% covered (warning)
63.64%
7 / 11
63.64% covered (warning)
63.64%
7 / 11
16.82
0.00% covered (danger)
0.00%
0 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getHostId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getDriver
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getHost
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getPort
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getDbName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getUsername
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getPassword
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getCreatedAt
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getUpdatedAt
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3declare(strict_types=1);
4
5namespace App\Domain\Host\Entity;
6
7 class HostDbConfig
8{
9    public function __construct(
10        private string $id,
11        private string $hostId,
12        private string $driver,
13        private string $host,
14        private int $port,
15        private string $dbName,
16        private string $username,
17        private string $password,
18        private int $createdAt,
19        private int $updatedAt
20    ) {}
21
22    public function getId(): string
23    {
24        return $this->id;
25    }
26
27    public function getHostId(): string
28    {
29        return $this->hostId;
30    }
31
32    public function getDriver(): string
33    {
34        return $this->driver;
35    }
36
37    public function getHost(): string
38    {
39        return $this->host;
40    }
41
42    public function getPort(): int
43    {
44        return $this->port;
45    }
46
47    public function getDbName(): string
48    {
49        return $this->dbName;
50    }
51
52    public function getUsername(): string
53    {
54        return $this->username;
55    }
56
57    public function getPassword(): string
58    {
59        return $this->password;
60    }
61
62    public function getCreatedAt(): int
63    {
64        return $this->createdAt;
65    }
66
67    public function getUpdatedAt(): int
68    {
69        return $this->updatedAt;
70    }
71}