Completed
Push — master ( 7fb071...ef2329 )
by Tyler
10:10 queued 07:49
created

ExceptionModel::getDataAttribute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
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