RoutePath   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A parameters() 0 4 1
A route() 0 4 1
1
<?php
2
3
namespace PragmaRX\Tracker\Vendor\Laravel\Models;
4
5
class RoutePath extends Base
6
{
7
    protected $table = 'tracker_route_paths';
8
9
    protected $fillable = [
10
        'route_id',
11
        'path',
12
    ];
13
14
    public function parameters()
15
    {
16
        return $this->hasMany($this->getConfig()->get('route_path_parameter_model'));
17
    }
18
19
    public function route()
20
    {
21
        return $this->belongsTo($this->getConfig()->get('route_model'), 'route_id');
22
    }
23
}
24