Passed
Push — master ( e97c07...69991b )
by Mike
04:23
created

ModelCaching   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 12
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A useEloquentBuilder() 0 3 1
A builder() 0 3 1
1
<?php
2
3
namespace GeneaLabs\LaravelModelCaching;
4
5
use Illuminate\Database\Eloquent\Builder;
6
7
class ModelCaching
8
{
9
    protected static $builder = Builder::class;
10
11
    public static function useEloquentBuilder(string $builder) : void
12
    {
13
        self::$builder = $builder;
14
    }
15
16
    public static function builder()
17
    {
18
        return self::$builder;
19
    }
20
}
21