Completed
Push — master ( c76df9...ef3d70 )
by Jeff
18:25
created

Brand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A products() 0 3 1
1
<?php
2
3
namespace App\Shop\Brands;
4
5
use App\Shop\Products\Product;
6
use Illuminate\Database\Eloquent\Model;
7
8
class Brand extends Model
9
{
10
    protected $fillable = ['name'];
11
12
    /**
13
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
14
     */
15
    public function products()
16
    {
17
        return $this->hasMany(Product::class);
18
    }
19
}