Passed
Push — master ( ea1130...b24b06 )
by F
03:15
created

CurrencyRepository::model()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace PWWEB\Localisation\Repositories;
4
5
use App\Repositories\BaseRepository;
0 ignored issues
show
Bug introduced by
The type App\Repositories\BaseRepository was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use PWWEB\Localisation\Models\Currency;
7
8
/**
9
 * PWWEB\Localisation\Repositories\CurrencyRepository CurrencyRepository.
10
 *
11
 * The repository for Currency.
12
 * Class CurrencyRepository
13
 *
14
 * @package   pwweb/localisation
15
 * @author    Frank Pillukeit <[email protected]>
16
 * @author    Richard Browne <[email protected]
17
 * @copyright 2020 pw-websolutions.com
18
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
19
*/
20
class CurrencyRepository extends BaseRepository
21
{
22
    /**
23
     * @var array
24
     */
25
    protected $fieldSearchable = [
26
        'name',
27
        'iso',
28
        'numeric_code',
29
        'entity_code',
30
        'active',
31
        'standard'
32
    ];
33
34
    /**
35
     * Return searchable fields.
36
     *
37
     * @return array
38
     */
39
    public function getFieldsSearchable()
40
    {
41
        return $this->fieldSearchable;
42
    }
43
44
    /**
45
     * Configure the Model.
46
     **/
47
    public function model()
48
    {
49
        return Currency::class;
50
    }
51
}
52