| Total Complexity | 2 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class RequestCriteria implements CriteriaInterface |
||
| 25 | { |
||
| 26 | protected $request; |
||
| 27 | protected $model; |
||
| 28 | protected $repository; |
||
| 29 | protected $search; |
||
| 30 | protected $searchData; |
||
| 31 | protected $searchFields; |
||
| 32 | protected $isFirstField = true; |
||
| 33 | protected $modelForceAndWhere; |
||
| 34 | protected $fieldsSearchable; |
||
| 35 | protected $fields; |
||
| 36 | protected $filter; |
||
| 37 | protected $orderBy; |
||
| 38 | protected $sortedBy; |
||
| 39 | protected $with; |
||
| 40 | protected $searchJoin; |
||
| 41 | protected $acceptedConditions; |
||
| 42 | protected $originalFields; |
||
| 43 | |||
| 44 | use ParserSearchableTrait; |
||
| 45 | use ParserOrderByTrait; |
||
| 46 | use ParserFilterTrait; |
||
| 47 | use ParserWithTrait; |
||
| 48 | |||
| 49 | public function __construct(Request $request) |
||
| 50 | { |
||
| 51 | $this->request = $request; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param $model |
||
| 56 | * @param \Prettus\Repository\Contracts\RepositoryInterface $repository |
||
| 57 | * @return mixed |
||
| 58 | * @throws \Exception |
||
| 59 | */ |
||
| 60 | public function apply($model, RepositoryInterface $repository) |
||
| 71 | } |
||
| 72 | } |
||
| 73 |