Completed
Push — master ( bad662...5b32ef )
by Aly
11:55
created

Interest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
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 38
ccs 4
cts 4
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 NotificationChannels\ExpoPushNotifications\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Interest extends Model
8
{
9
    /**
10
     * The associated table.
11
     *
12
     * @var string
13
     */
14
    protected $table;
15
16
    /**
17
     * The attributes that are mass assignable.
18
     *
19
     * @var array
20
     */
21
    protected $fillable = [
22
        'key',
23
        'value',
24
    ];
25
26
    /**
27
     * Indicates if the model should be timestamped.
28
     *
29
     * @var bool
30
     */
31
    public $timestamps = false;
32
33
    /**
34
     * Interest constructor.
35
     *
36
     * @param array $attributes
37
     */
38 3
    public function __construct(array $attributes = [])
39
    {
40 3
        $this->table = config('exponent-push-notifications.interests.database.table_name');
41
42 3
        parent::__construct($attributes);
43 3
    }
44
}
45