RoutePath::route()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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