Passed
Pull Request — master (#12)
by
unknown
02:23 queued 19s
created

Interest::__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
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace NotificationChannels\ExpoPushNotifications\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Interest extends Model
8
{
9
    protected $table;
10
11
    protected $fillable = [
12
        'key',
13
        'value',
14
    ];
15
16
    public $timestamps = false;
17
18
    public function __construct(array $attributes = [])
19
    {
20
        $this->table = config('exponent-push-notifications.interests.database.table_name');
21
22
        parent::__construct($attributes);
23
    }
24
}