Completed
Pull Request — master (#12)
by
unknown
05:55
created

Interest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 31
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
/**
8
 * Class Interest
9
 * @package NotificationChannels\ExpoPushNotifications\Models
10
 */
11
class Interest extends Model
12
{
13
    /**
14
     * @var string
15
     */
16
    protected $table;
17
18
    /**
19
     * @var array
20
     */
21
    protected $fillable = [
22
        'key',
23
        'value',
24
    ];
25
26
    /**
27
     * @var bool
28
     */
29
    public $timestamps = false;
30
31
    /**
32
     * Interest constructor.
33
     * @param array $attributes
34
     */
35
    public function __construct(array $attributes = [])
36
    {
37
        $this->table = config('exponent-push-notifications.interests.database.table_name');
38
39
        parent::__construct($attributes);
40
    }
41
}