Migration::__construct()   A
last analyzed

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\LaravelMessenger\Bases;
6
7
use Arcanedev\Support\Database\Migration as BaseMigration;
8
9
/**
10
 * Class     Migration
11
 *
12
 * @package  Arcanedev\LaravelMessenger\Bases
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 252
    public function __construct()
26
    {
27 252
        $this->setConnection(config('messenger.database.connection'));
28 252
        $this->setPrefix(config('messenger.database.prefix'));
29 252
    }
30
}
31