• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tempestphp / tempest-framework / 14724150077

29 Apr 2025 05:39AM UTC coverage: 80.147% (-0.1%) from 80.275%
14724150077

Pull #1120

github

web-flow
Merge 4c33421e1 into afcfb4d76
Pull Request #1120: feat(container): support dynamic tags using dynamic initializers

23 of 23 new or added lines in 7 files covered. (100.0%)

23 existing lines in 5 files now uncovered.

11849 of 14784 relevant lines covered (80.15%)

107.18 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Tempest/Database/src/Config/PostgresConfig.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Database\Config;
6

7
use SensitiveParameter;
8
use Tempest\Database\Tables\NamingStrategy;
9
use Tempest\Database\Tables\PluralizedSnakeCaseStrategy;
10
use UnitEnum;
11

12
final class PostgresConfig implements DatabaseConfig
13
{
14
    public string $dsn {
15
        get => sprintf(
16
            'pgsql:host=%s;port=%s;dbname=%s;user=%s;password=%s',
17
            $this->host,
18
            $this->port,
19
            $this->database,
20
            $this->username,
21
            $this->password,
22
        );
23
    }
24

25
    public DatabaseDialect $dialect {
26
        get => DatabaseDialect::POSTGRESQL;
27
    }
28

29
    public function __construct(
×
30
        #[SensitiveParameter]
31
        public string $host = '127.0.0.1',
32
        #[SensitiveParameter]
33
        public string $port = '5432',
34
        #[SensitiveParameter]
35
        public string $username = '',
36
        #[SensitiveParameter]
37
        public string $password = '',
38
        #[SensitiveParameter]
39
        public string $database = 'app',
40
        public NamingStrategy $namingStrategy = new PluralizedSnakeCaseStrategy(),
41
        public null|string|UnitEnum $tag = null,
UNCOV
42
    ) {}
×
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc