Address   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 22
c 0
b 0
f 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addressable() 0 3 1
A country() 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\BelongsTo;
8
use Illuminate\Database\Eloquent\Relations\MorphTo;
9
10
class Address extends Model
11
{
12
    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\Address.
Loading history...
13
14
    protected $guarded = [
15
        'id',
16
    ];
17
18
    /**
19
     * Get all of the owning addressable models.
20
     */
21
    public function addressable(): MorphTo
22
    {
23
        return $this->morphTo();
24
    }
25
26
    /**
27
     * Get Country.
28
     */
29
    public function country(): BelongsTo
30
    {
31
        return $this->belongsTo(Country::class);
32
    }
33
}
34