LaunchScreenAdvertRepository   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 20
rs 10
c 1
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A model() 0 4 1
A boot() 0 4 1
1
<?php
2
3
namespace PHPHub\Repositories\Eloquent;
4
5
use Prettus\Repository\Criteria\RequestCriteria;
6
use PHPHub\Repositories\LaunchScreenAdvertRepositoryInterface;
7
use PHPHub\LaunchScreenAdvert;
8
9
/**
10
 * Class LaunchScreenAdvertRepositoryEloquent.
11
 */
12
class LaunchScreenAdvertRepository extends BaseRepository implements LaunchScreenAdvertRepositoryInterface
13
{
14
    /**
15
     * Specify Model class name.
16
     *
17
     * @return string
18
     */
19
    public function model()
20
    {
21
        return LaunchScreenAdvert::class;
22
    }
23
24
    /**
25
     * Boot up the repository, pushing criteria.
26
     */
27
    public function boot()
28
    {
29
        $this->pushCriteria(app(RequestCriteria::class));
30
    }
31
}
32