EntryTagModel   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 38
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConnectionName() 0 3 1
1
<?php
2
3
namespace Insense\LaravelTelescopePruning\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class EntryTagModel extends Model
8
{
9
    /**
10
     * The table associated with the model.
11
     *
12
     * @var string
13
     */
14
    protected $table = 'telescope_entries_tags';
15
16
    /**
17
     * Indicates if the model should be timestamped.
18
     *
19
     * @var bool
20
     */
21
    public $timestamps = false;
22
23
    /**
24
     * The primary key for the model.
25
     *
26
     * @var string
27
     */
28
    protected $primaryKey = null;
29
30
    /**
31
     * Indicates if the IDs are auto-incrementing.
32
     *
33
     * @var bool
34
     */
35
    public $incrementing = false;
36
37
    /**
38
     * Get the current connection name for the model.
39
     *
40
     * @return string
41
     */
42
    public function getConnectionName()
43
    {
44
        return config('telescope.storage.database.connection');
45
    }
46
}
47