Completed
Push — master ( 87c960...50a753 )
by Can
03:58 queued 55s
created

Rating::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 1
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Canylmz\Rating\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Rating extends Model
8
{
9
    public function __construct(array $attributes = [])
10
    {
11
        if (! isset($this->table)) {
12
            $this->setTable(config('rating.table_name'));
13
        }
14
15
        parent::__construct($attributes);
16
    }
17
}
18