Completed
Push — master ( e5dd4f...d6765d )
by ARCANEDEV
01:24
created

Migration::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arcanedev\LaravelNotes\Database;
6
7
use Arcanedev\Support\Database\Migration as BaseMigration;
8
9
/**
10
 * Class     Migration
11
 *
12
 * @package  Arcanedev\LaravelNotes\Database
13
 * @author   ARCANEDEV <[email protected]>
14
 */
15
abstract class Migration extends BaseMigration
16
{
17
    /* -----------------------------------------------------------------
18
     |  Constructor
19
     | -----------------------------------------------------------------
20
     */
21
22
    /**
23
     * Migration constructor.
24
     */
25 66
    public function __construct()
26
    {
27 66
        $this->setConnection(config('notes.database.connection'));
28 66
        $this->setPrefix(config('notes.database.prefix'));
29 66
    }
30
}
31