CurrencyRepository::getFieldsSearchable()   A
last analyzed

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 PWWEB\Core\Repositories\BaseRepository;
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
 * @author    Frank Pillukeit <[email protected]>
15
 * @author    Richard Browne <[email protected]
16
 * @copyright 2020 pw-websolutions.com
17
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
18
 */
19
class CurrencyRepository extends BaseRepository
20
{
21
    /**
22
     * Fields that can be searched by.
23
     *
24
     * @var array
25
     */
26
    protected $fieldSearchable = [
27
        'name',
28
        'iso',
29
        'numeric_code',
30
        'entity_code',
31
        'active',
32
        'standard',
33
    ];
34
35
    /**
36
     * Return searchable fields.
37
     *
38
     * @return array
39
     */
40
    public function getFieldsSearchable()
41
    {
42
        return $this->fieldSearchable;
43
    }
44
45
    /**
46
     * Configure the Model.
47
     *
48
     * @return string
49
     **/
50
    public function model()
51
    {
52
        return config('pwweb.localisation.models.currency');
53
    }
54
}
55