1 | <?php |
||
10 | class PagedQuery |
||
11 | { |
||
12 | const TOTAL_COUNT_STRATEGY_DEFAULT = 'default'; |
||
13 | const TOTAL_COUNT_STRATEGY_ALWAYS = 'always'; |
||
14 | const TOTAL_COUNT_STRATEGY_OPTIONAL = 'optional'; |
||
15 | const TOTAL_COUNT_STRATEGY_NEVER = 'never'; |
||
16 | |||
17 | /** |
||
18 | * @var ConfiguredQuery |
||
19 | */ |
||
20 | private $configuredQuery; |
||
21 | |||
22 | /** |
||
23 | * @var Pager |
||
24 | */ |
||
25 | private $pager; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $totalCountStrategy; |
||
31 | |||
32 | 27 | public function __construct(ConfiguredQuery $configuredQuery, Pager $pager) |
|
38 | |||
39 | 27 | public function getConfiguredQuery(): ConfiguredQuery |
|
43 | |||
44 | 26 | public function getPager(): Pager |
|
48 | |||
49 | 26 | public function getTotalCountStrategy(): string |
|
53 | |||
54 | 12 | public function setTotalCountStrategy(string $totalCountStrategy): self |
|
59 | } |
||
60 |