ExceptionModel::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 10
cc 1
nc 1
nop 1
crap 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