| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class QueryScope implements ScopeInterface |
||
| 22 | { |
||
| 23 | /** @var array */ |
||
| 24 | private $where; |
||
| 25 | |||
| 26 | /** @var array */ |
||
| 27 | private $orderBy; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array $where |
||
| 31 | * @param array $orderBy |
||
| 32 | */ |
||
| 33 | public function __construct(array $where, array $orderBy = []) |
||
| 34 | { |
||
| 35 | $this->where = $where; |
||
| 36 | $this->orderBy = $orderBy; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritdoc |
||
| 41 | */ |
||
| 42 | public function apply(QueryBuilder $query): void |
||
| 45 | } |
||
| 46 | } |
||
| 47 |