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

tempestphp / tempest-framework / 12021710761

25 Nov 2024 06:54PM UTC coverage: 79.441% (-2.6%) from 81.993%
12021710761

push

github

web-flow
ci: close stale issues and pull requests

7879 of 9918 relevant lines covered (79.44%)

61.32 hits per line

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

81.82
/src/Tempest/Database/src/DatabaseConfig.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Database;
6

7
final class DatabaseConfig
8
{
9
    private array $migrations = [];
10

11
    public function __construct(
382✔
12
        public DatabaseConnection $connection,
13
    ) {
14
    }
382✔
15

16
    public function connection(): DatabaseConnection
381✔
17
    {
18
        return $this->connection;
381✔
19
    }
20

21
    public function addMigration(Migration|string $migration): self
382✔
22
    {
23
        $this->migrations[] = $migration;
382✔
24

25
        return $this;
382✔
26
    }
27

28
    public function setMigrations(array $migrations): void
×
29
    {
30
        $this->migrations = $migrations;
×
31
    }
32

33
    public function getMigrations(): array
9✔
34
    {
35
        return $this->migrations;
9✔
36
    }
37
}
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

© 2026 Coveralls, Inc