Completed
Push — master ( 7a1192...f1d62a )
by Tyler
03:16
created

ExceptionModel::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1.008

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
ccs 4
cts 5
cp 0.8
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1.008
1
<?php
2
3
namespace Tylercd100\LERN\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class ExceptionModel extends Model {
8
    protected $table;
9
    protected $guarded = array('id');
10
    
11
    protected $casts = array(
12
        'data' => 'array'
13
    );
14
    
15 2
    public function __construct(array $attributes = [])
16
    {
17 2
        $this->table = config('lern.record.table');
18 2
        parent::__construct($attributes);
19 2
    }
20
}
21