PriceList   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A events() 0 3 1
A categories() 0 3 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class PriceList extends Model
8
{
9
    //
10
    protected $fillable = ['name'];
11
12
    public function events()
13
    {
14
        return $this->hasMany('App\Event');
15
    }
16
17
    public function categories()
18
    {
19
        return $this->belongsToMany('App\PriceCategory')->withPivot('priority');
20
    }
21
}
22