RegionsRepositoryEloquent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getModel() 0 6 1
1
<?php
2
3
namespace Yajra\Address\Repositories\Regions;
4
5
use Yajra\Address\Entities\Region;
6
use Yajra\Address\Repositories\EloquentBaseRepository;
7
8
class RegionsRepositoryEloquent extends EloquentBaseRepository implements RegionsRepository
9
{
10
    /**
11
     * Get repository model.
12
     *
13
     * @return \Illuminate\Database\Eloquent\Model
14
     */
15
    public function getModel()
16
    {
17
        $model = config('address.models.region', Region::class);
18
19
        return new $model;
20
    }
21
}
22