Completed
Push — master ( 77fa1d...4c135b )
by ARCANEDEV
08:34
created

QueryArgument   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A queryRel() 0 6 1
1
<?php namespace Arcanedev\LaravelTracker\Models;
2
3
/**
4
 * Class     QueryArgument
5
 *
6
 * @package  Arcanedev\LaravelTracker\Models
7
 * @author   ARCANEDEV <[email protected]>
8
 *
9
 * @property  int             id
10
 * @property  int             query_id
11
 * @property  string          argument
12
 * @property  string          value
13
 * @property  \Carbon\Carbon  created_at
14
 * @property  \Carbon\Carbon  updated_at
15
 */
16
class QueryArgument extends Model
17
{
18
    /* ------------------------------------------------------------------------------------------------
19
     |  Properties
20
     | ------------------------------------------------------------------------------------------------
21
     */
22
    /**
23
     * The table associated with the model.
24
     *
25
     * @var string
26
     */
27
    protected $table = 'query_arguments';
28
29
    /**
30
     * The attributes that are mass assignable.
31
     *
32
     * @var array
33
     */
34
    protected $fillable = ['query_id', 'argument', 'value'];
35
36
    /* ------------------------------------------------------------------------------------------------
37
     |  Relationships
38
     | ------------------------------------------------------------------------------------------------
39
     */
40
    /**
41
     * The query relationship.
42
     *
43
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
44
     */
45
    public function queryRel()
46
    {
47
        return $this->belongsTo(
48
            $this->getConfig('models.query', Query::class)
49
        );
50
    }
51
}
52