ExceptionModel   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Tylercd100\LERN\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class ExceptionModel extends Model {
8
    protected $connection;
9
    protected $table;
10
    protected $guarded = array('id');
11
    
12
    protected $casts = array(
13
        'data' => 'array'
14
    );
15
    
16 15
    public function __construct(array $attributes = [])
17
    {
18 15
        $this->connection = config('lern.record.connection');
19 15
        $this->table = config('lern.record.table');
20 15
        parent::__construct($attributes);
21 15
    }
22
}
23