AbstractModel   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
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\LaravelAuth\Models;
2
3
use Arcanedev\Support\Database\Model;
4
5
/**
6
 * Class     Model
7
 *
8
 * @package  Arcanedev\LaravelAuth\Base
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class AbstractModel extends Model
12
{
13
    /* -----------------------------------------------------------------
14
     |  Constructor
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Create a new Eloquent model instance.
20
     *
21
     * @param  array  $attributes
22
     */
23 204
    public function __construct(array $attributes = [])
24
    {
25 204
        $this->setConnection(config('laravel-auth.database.connection'))
26 204
             ->setPrefix(config('laravel-auth.database.prefix'));
27
28 204
        parent::__construct($attributes);
29 204
    }
30
}
31