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

ExceptionModel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 80%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 14
ccs 4
cts 5
cp 0.8
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 2
    public function __construct(array $attributes = [])
16
    {
17 2
        $this->table = config('lern.record.table');
18 2
        parent::__construct($attributes);
19 2
    }
20
}
21