Completed
Push — master ( f77784...60840d )
by Mahmoud
03:05
created

CountryRepository::model()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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