Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Scope implements Criterion |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $scopes; |
||
15 | |||
16 | /** |
||
17 | * Scope constructor. |
||
18 | * @param mixed ...$scopes |
||
19 | */ |
||
20 | public function __construct(...$scopes) |
||
21 | { |
||
22 | $this->scopes = Arr::flatten($scopes); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param Builder|mixed $model |
||
27 | * |
||
28 | * @return Builder|mixed |
||
29 | */ |
||
30 | public function apply($model) |
||
37 | } |
||
38 | } |
||
39 |