1 | <?php |
||
12 | final class ORMQueryResult implements Result |
||
13 | { |
||
14 | private $query; |
||
15 | private $fetchCollection; |
||
16 | private $count; |
||
17 | private $result; |
||
18 | |||
19 | /** |
||
20 | * @param Query|QueryBuilder $query |
||
21 | 16 | * @param bool $fetchCollection |
|
22 | */ |
||
23 | 16 | public function __construct($query, $fetchCollection = true) |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 10 | public function take($offset, $limit) |
|
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function count() |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function getIterator() |
||
78 | 12 | ||
79 | /** |
||
80 | 12 | * @return Query |
|
81 | */ |
||
82 | 12 | public function getQuery() |
|
86 | |||
87 | /** |
||
88 | * @param int $offset |
||
89 | * @param int $limit |
||
90 | * |
||
91 | * @return Paginator |
||
92 | */ |
||
93 | private function createPaginator($offset, $limit) |
||
106 | } |
||
107 |