Completed
Push — master ( f90be5...f5f5c6 )
by ARCANEDEV
17s
created

AbstractModel::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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