Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class MockLensRequest extends LensRequest |
||
8 | { |
||
9 | public $withFilters; |
||
10 | public $withOrdering; |
||
11 | |||
12 | 8 | public function __construct(array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], $content = null) |
|
13 | { |
||
14 | 8 | parent::__construct($query, $request, $attributes, $cookies, $files, $server, $content); |
|
15 | |||
16 | 8 | $this->withFilters = false; |
|
17 | 8 | $this->withOrdering = false; |
|
18 | 8 | } |
|
19 | |||
20 | 2 | public function withFilters($query) |
|
21 | { |
||
22 | 2 | $this->withFilters = true; |
|
23 | |||
24 | 2 | return $query; |
|
25 | } |
||
26 | |||
27 | 2 | public function withOrdering($query) |
|
32 | } |
||
33 | } |
||
34 |