Completed
Pull Request — master (#12)
by
unknown
06:28 queued 02:32
created

Interest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace NotificationChannels\ExpoPushNotifications\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
/**
8
 * Class Interest.
9
 */
10
class Interest extends Model
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $table;
16
17
    /**
18
     * @var array
19
     */
20
    protected $fillable = [
21
        'key',
22
        'value',
23
    ];
24
25
    /**
26
     * @var bool
27
     */
28
    public $timestamps = false;
29
30
    /**
31
     * Interest constructor.
32
     * @param array $attributes
33
     */
34 1
    public function __construct(array $attributes = [])
35
    {
36 1
        $this->table = config('exponent-push-notifications.interests.database.table_name');
37
38 1
        parent::__construct($attributes);
39 1
    }
40
}
41