Completed
Pull Request — master (#10)
by ARCANEDEV
06:09
created

AbstractModel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 19
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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
0 ignored issues
show
Deprecated Code introduced by
The class Arcanedev\Support\Bases\Model has been deprecated with message: Use the `Arcanedev\Support\Database\Model` instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
12
{
13
    /* -----------------------------------------------------------------
14
     |  Constructor
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Create a new Eloquent model instance.
20
     *
21
     * @param  array  $attributes
22
     */
23 28
    public function __construct(array $attributes = [])
24
    {
25 28
        parent::__construct($attributes);
26
27 28
        $this->prefix = config('arcanesoft.blog.database.prefix', null);
28 28
    }
29
}
30