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

Interest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

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