• 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/MysqlConfig.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 MysqlConfig implements DatabaseConfig
13
{
14
    public string $dsn {
15
        get => sprintf(
16
            'mysql:host=%s:%s;dbname=%s',
17
            $this->host,
18
            $this->port,
19
            $this->database,
20
        );
21
    }
22

23
    public DatabaseDialect $dialect {
24
        get => DatabaseDialect::MYSQL;
25
    }
26

27
    public function __construct(
×
28
        #[SensitiveParameter]
29
        public string $host = 'localhost',
30
        #[SensitiveParameter]
31
        public string $port = '3306',
32
        #[SensitiveParameter]
33
        public string $username = 'root',
34
        #[SensitiveParameter]
35
        public string $password = '',
36
        #[SensitiveParameter]
37
        public string $database = 'app',
38
        public NamingStrategy $namingStrategy = new PluralizedSnakeCaseStrategy(),
39
        public null|string|UnitEnum $tag = null,
UNCOV
40
    ) {}
×
41
}
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