Completed
Push — master ( e93f60...2f787f )
by Mahmoud
08:56 queued 02:41
created

CountryRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A model() 0 4 1
1
<?php
2
3
namespace App\Containers\Country\Data\Repositories;
4
5
use App\Containers\Country\Models\Country;
6
use App\Port\Repository\Abstracts\Repository;
7
8
/**
9
 * Class CountryRepository.
10
 *
11
 * @author Mahmoud Zalt <[email protected]>
12
 */
13
class CountryRepository extends Repository
14
{
15
16
    // cache the query result of all() (getting all countries) for 1 day   <when caching is enabled>
17
    protected $cacheMinutes = 1440; // 1 day
18
19
    protected $cacheOnly = ['all'];
20
21
    /**
22
     * @var array
23
     */
24
    protected $fieldSearchable = [
25
26
    ];
27
28
    /**
29
     * Specify Model class name.
30
     *
31
     * @return string
32
     */
33
    public function model()
34
    {
35
        return Country::class;
36
    }
37
}
38