Website   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
dl 0
loc 14
c 1
b 0
f 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A websiteable() 0 3 1
1
<?php
2
3
namespace CleaniqueCoders\Profile\Models;
4
5
use CleaniqueCoders\Traitify\Concerns\InteractsWithUuid;
6
use Illuminate\Database\Eloquent\Model;
7
use Illuminate\Database\Eloquent\Relations\MorphTo;
8
9
class Website extends Model
10
{
11
    use InteractsWithUuid;
0 ignored issues
show
Bug introduced by
The trait CleaniqueCoders\Traitify...cerns\InteractsWithUuid requires the property $uuid_column which is not provided by CleaniqueCoders\Profile\Models\Website.
Loading history...
12
13
    protected $guarded = [
14
        'id',
15
    ];
16
17
    /**
18
     * Get all of the owning websiteable models.
19
     */
20
    public function websiteable(): MorphTo
21
    {
22
        return $this->morphTo();
23
    }
24
}
25