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

aplus-framework / database-extra / 16536129688

23 Aug 2024 09:59PM UTC coverage: 100.0%. Remained the same
16536129688

push

github

natanfelles
Upgrade coding standard

150 of 150 relevant lines covered (100.0%)

3.61 hits per line

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

100.0
/src/Migration.php
1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of Aplus Framework Database Extra Library.
4
 *
5
 * (c) Natan Felles <natanfelles@gmail.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Framework\Database\Extra;
11

12
use Framework\Database\Database;
13

14
/**
15
 * Class Migration.
16
 *
17
 * @package database-extra
18
 */
19
abstract class Migration
20
{
21
    protected Database $database;
22

23
    public function setDatabase(Database $database) : static
24
    {
25
        $this->database = $database;
4✔
26
        return $this;
4✔
27
    }
28

29
    public function getDatabase() : Database
30
    {
31
        return $this->database;
3✔
32
    }
33

34
    /**
35
     * Run migration up.
36
     */
37
    abstract public function up() : void;
38

39
    /**
40
     * Run migration down.
41
     */
42
    abstract public function down() : void;
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

© 2026 Coveralls, Inc