Completed
Push — master ( 92c593...aaa14d )
by Tim
03:08
created

Customer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 1
c 3
b 1
f 0
lcom 0
cbo 1
dl 0
loc 23
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A callbacks() 0 4 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Customer extends Model
8
{
9
    protected $table = 'customers';
10
11
    /**
12
     * The attributes that are mass assignable.
13
     *
14
     * @var array
15
     */
16
    protected $fillable = [
17
        'company', 'fname', 'name', 'address',
18
        'zipcode', 'city', 'country', 'phone',
19
        'mobile', 'email', 'vat'
20
    ];
21
22
    /**
23
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
24
     */
25
    public function callbacks()
26
    {
27
        return $this->belongsToMany('App\Callback');
28
    }
29
}
30