Total Complexity | 3 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 85.71% |
Changes | 0 |
1 | <?php |
||
9 | class ChunkScope implements Scope |
||
10 | { |
||
11 | /** |
||
12 | * @var mixed |
||
13 | */ |
||
14 | private $start; |
||
15 | /** |
||
16 | * @var mixed |
||
17 | */ |
||
18 | private $end; |
||
19 | |||
20 | /** |
||
21 | * ChunkScope constructor. |
||
22 | * @param mixed $start |
||
23 | * @param mixed $end |
||
24 | */ |
||
25 | 13 | public function __construct($start, $end) |
|
29 | 13 | } |
|
30 | |||
31 | /** |
||
32 | * Apply the scope to a given Eloquent query builder. |
||
33 | * |
||
34 | * @param \Illuminate\Database\Eloquent\Builder $builder |
||
35 | * @param \Illuminate\Database\Eloquent\Model $model |
||
36 | * @return void |
||
37 | */ |
||
38 | 12 | public function apply(Builder $builder, Model $model) |
|
48 | 12 | }); |
|
49 | 12 | } |
|
50 | |||
51 | public function key() |
||
56 |