Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class FromScope implements Scope |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var mixed |
||
15 | */ |
||
16 | private $from; |
||
17 | |||
18 | /** |
||
19 | * @param mixed $from |
||
20 | */ |
||
21 | public function __construct($from) |
||
22 | { |
||
23 | |||
24 | $this->from = $from; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Apply the scope to a given Eloquent query builder. |
||
29 | * |
||
30 | * @param \Illuminate\Database\Eloquent\Builder $builder |
||
31 | * @param \Illuminate\Database\Eloquent\Model $model |
||
32 | * @return void |
||
33 | */ |
||
34 | public function apply(Builder $builder, Model $model) |
||
38 | } |
||
39 | } |
||
40 |