1 | <?php |
||
13 | class RoleCriteria extends Criteria |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $roles; |
||
20 | |||
21 | /** |
||
22 | * RoleCriteria constructor. |
||
23 | * |
||
24 | * @param $roles |
||
25 | */ |
||
26 | public function __construct($roles) |
||
30 | |||
31 | /** |
||
32 | * @param $model |
||
33 | * @param \Prettus\Repository\Contracts\RepositoryInterface $repository |
||
34 | * |
||
35 | * @return mixed |
||
36 | */ |
||
37 | public function apply($model, PrettusRepositoryInterface $repository) |
||
43 | } |
||
44 |