Completed
Push — master ( acece9...67426a )
by ARCANEDEV
13s
created

AbstractModel::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
crap 1
1
<?php namespace Arcanedev\LaravelSeo\Models;
2
3
use Arcanedev\Support\Bases\Model;
4
5
/**
6
 * Class     AbstractModel
7
 *
8
 * @package  Arcanedev\LaravelSeo\Models
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class AbstractModel extends Model
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Constructor
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Create a new Eloquent model instance.
19
     *
20
     * @param  array  $attributes
21
     */
22 12
    public function __construct(array $attributes = [])
23
    {
24 12
        parent::__construct($attributes);
25
26 12
        $this->setConnection(config('seo.database.connection', null));
27 12
        $this->setPrefix(config('seo.database.prefix', 'seo_'));
28 12
    }
29
}
30