Click   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 14
ccs 0
cts 2
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A url() 0 3 1
1
<?php
2
3
namespace Devpri\Tinre\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Click extends Model
8
{
9
    const UPDATED_AT = null;
10
11
    /**
12
     * The attributes that are mass assignable.
13
     *
14
     * @var array
15
     */
16
    protected $fillable = ['url_id', 'country', 'region', 'city', 'device_type', 'device_brand', 'device_model', 'user_agent', 'os', 'browser', 'referer', 'referer_host', 'created_at'];
17
18
    public function url()
19
    {
20
        return $this->belongsTo('Devpri\Tinre\Models\Url');
21
    }
22
}
23