Completed
Push — master ( f1d62a...c72000 )
by Tyler
03:35
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

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
ccs 4
cts 4
cp 1
cc 1
eloc 3
nc 1
nop 1
crap 1
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 6
    public function __construct(array $attributes = [])
16
    {
17 6
        $this->table = config('lern.record.table');
18 6
        parent::__construct($attributes);
19 6
    }
20
}
21