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

ExceptionModel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 2 Features 2
Metric Value
wmc 1
c 4
b 2
f 2
lcom 0
cbo 1
dl 0
loc 14
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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