Completed
Push — fix/56 ( f6593f...d15d50 )
by Tyler
24:02 queued 18:50
created

ExceptionModel::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 10
cc 1
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 $connection;
9
    protected $table;
10
    protected $guarded = array('id');
11
    
12
    protected $casts = array(
13
        'data' => 'array'
14
    );
15
    
16
    public function __construct(array $attributes = [])
17
    {
18
        $this->connection = config('lern.record.connection');
19
        $this->table = config('lern.record.table');
20
        parent::__construct($attributes);
21
    }
22
}
23