Completed
Push — master ( 265b9c...70421f )
by ARCANEDEV
11:53
created

Query::arguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
ccs 4
cts 4
cp 1
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php namespace Arcanedev\LaravelTracker\Models;
2
3
/**
4
 * Class     Query
5
 *
6
 * @package  Arcanedev\LaravelTracker\Models
7
 * @author   ARCANEDEV <[email protected]>
8
 *
9
 * @property  int             id
10
 * @property  string          query
11
 * @property  array           arguments
12
 * @property  \Carbon\Carbon  created_at
13
 * @property  \Carbon\Carbon  updated_at
14
 */
15
class Query extends Model
16
{
17
    /* ------------------------------------------------------------------------------------------------
18
     |  Properties
19
     | ------------------------------------------------------------------------------------------------
20
     */
21
    /**
22
     * The table associated with the model.
23
     *
24
     * @var string
25
     */
26
    protected $table = 'queries';
27
28
    /**
29
     * The attributes that are mass assignable.
30
     *
31
     * @var array
32
     */
33
    protected $fillable = ['query', 'arguments'];
34
35
    /**
36
     * The attributes that should be cast to native types.
37
     *
38
     * @var array
39
     */
40
    protected $casts = [
41
        'id'        => 'int',
42
        'arguments' => 'array',
43
    ];
44
45
    /* ------------------------------------------------------------------------------------------------
46
     |  Relationships
47
     | ------------------------------------------------------------------------------------------------
48
     */
49
}
50