Completed
Push — master ( eebd52...3cd9a5 )
by ARCANEDEV
08:34
created

Migration::setTable()   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
dl 0
loc 6
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php namespace Arcanesoft\Blog\Bases;
2
3
use Arcanedev\Support\Bases\Migration as BaseMigration;
4
5
/**
6
 * Class     Migration
7
 *
8
 * @package  Arcanesoft\Blog\Bases
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class Migration extends BaseMigration
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Constructor
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Make a migration instance.
19
     */
20
    public function __construct()
21
    {
22
        $this->connection = config('arcanesoft.blog.database.connection', null);
23
    }
24
25
    /* ------------------------------------------------------------------------------------------------
26
     |  Getters & Setters
27
     | ------------------------------------------------------------------------------------------------
28
     */
29
    /**
30
     * Set the table name.
31
     *
32
     * @param  string  $table
33
     *
34
     * @return self
35
     */
36
    public function setTable($table)
37
    {
38
        $this->table = $table;
39
40
        return $this;
41
    }
42
}
43