Completed
Push — master ( 4e528e...b698b3 )
by ARCANEDEV
04:17
created

Migration::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php namespace Arcanedev\LaravelMessenger\Bases;
2
3
use Arcanedev\LaravelMessenger\Traits\ConfigHelper;
4
use Arcanedev\Support\Bases\Migration as BaseMigration;
5
6
/**
7
 * Class     Migration
8
 *
9
 * @package  Arcanedev\LaravelMessenger\Bases
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
abstract class Migration extends BaseMigration
13
{
14
    /* ------------------------------------------------------------------------------------------------
15
     |  Traits
16
     | ------------------------------------------------------------------------------------------------
17
     */
18
    use ConfigHelper;
19
20
    /* ------------------------------------------------------------------------------------------------
21
     |  Constructor
22
     | ------------------------------------------------------------------------------------------------
23
     */
24
    /**
25
     * Migration constructor.
26
     */
27
    public function __construct()
28
    {
29
        $this->setConnection(
30
            $this->getFromConfig('database.connection')
31
        );
32
    }
33
}
34