ExampleRepositoryEloquent::presenter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Modules\Example\Repositories;
4
5
use Modules\Example\Entities\Example;
6
use Modules\Example\Presenters\ExamplePresenter;
7
use Prettus\Repository\Eloquent\BaseRepository;
8
9
class ExampleRepositoryEloquent extends BaseRepository implements ExampleRepository
10
{
11
    protected $fieldSearchable = [
12
        'name' => 'like',
13
    ];
14
15
    /**
16
     * Specify Model.
17
     *
18
     * @return string
19
     */
20
    public function model()
21
    {
22
        return Example::class;
23
    }
24
25
    /**
26
     * Specify Presenter.
27
     *
28
     * @return mixed
29
     */
30
    public function presenter()
31
    {
32
        return ExamplePresenter::class;
33
    }
34
}
35