Syslog   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 36
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A device() 0 4 1
1
<?php
2
3
namespace App\Models\General;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
/**
8
 * App\Models\General\Syslog
9
 *
10
 * @property integer $device_id
11
 * @property string $facility
12
 * @property string $priority
13
 * @property string $level
14
 * @property string $tag
15
 * @property string $timestamp
16
 * @property string $program
17
 * @property string $msg
18
 * @property integer $seq
19
 * @property-read \App\Models\Device $device
20
 * @method static \Illuminate\Database\Query\Builder|\App\Models\General\Syslog whereDeviceId($value)
21
 * @method static \Illuminate\Database\Query\Builder|\App\Models\General\Syslog whereFacility($value)
22
 * @method static \Illuminate\Database\Query\Builder|\App\Models\General\Syslog wherePriority($value)
23
 * @method static \Illuminate\Database\Query\Builder|\App\Models\General\Syslog whereLevel($value)
24
 * @method static \Illuminate\Database\Query\Builder|\App\Models\General\Syslog whereTag($value)
25
 * @method static \Illuminate\Database\Query\Builder|\App\Models\General\Syslog whereTimestamp($value)
26
 * @method static \Illuminate\Database\Query\Builder|\App\Models\General\Syslog whereProgram($value)
27
 * @method static \Illuminate\Database\Query\Builder|\App\Models\General\Syslog whereMsg($value)
28
 * @method static \Illuminate\Database\Query\Builder|\App\Models\General\Syslog whereSeq($value)
29
 * @mixin \Eloquent
30
 */
31
class Syslog extends Model
32
{
33
    /**
34
     * Indicates if the model should be timestamped.
35
     *
36
     * @var bool
37
     */
38
    public $timestamps = false;
39
    /**
40
     * The table associated with the model.
41
     *
42
     * @var string
43
     */
44
    protected $table = 'syslog';
45
    /**
46
     * The primary key column name.
47
     *
48
     * @var string
49
     */
50
    protected $primaryKey = 'seq';
51
52
53
    // ---- Accessors/Mutators ----
54
55
56
    // ---- Define Relationships ----
57
58
    /**
59
     * Returns the device this entry belongs to.
60
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
61
     */
62
    public function device()
63
    {
64
        return $this->belongsTo('App\Models\Device', 'device_id', 'device_id');
65
    }
66
}
67