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

Migration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 22
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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