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

Interest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
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 31
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
/**
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