AbstractModel   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 20
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php namespace Arcanedev\LaravelSeo\Models;
2
3
use Arcanedev\LaravelSeo\Seo;
4
use Arcanedev\Support\Database\Model;
5
6
/**
7
 * Class     AbstractModel
8
 *
9
 * @package  Arcanedev\LaravelSeo\Models
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
abstract class AbstractModel extends Model
13
{
14
    /* -----------------------------------------------------------------
15
     |  Constructor
16
     | -----------------------------------------------------------------
17
     */
18
19
    /**
20
     * Create a new Eloquent model instance.
21
     *
22
     * @param  array  $attributes
23
     */
24 26
    public function __construct(array $attributes = [])
25
    {
26 26
        parent::__construct($attributes);
27
28 26
        $this->setConnection(Seo::getConfig('database.connection', null));
29 26
        $this->setPrefix(Seo::getConfig('database.prefix', 'seo_'));
30 26
    }
31
}
32