1 | <?php |
||
12 | final class DBALQueryBuilderResult implements Result |
||
13 | { |
||
14 | private $qb; |
||
15 | private $countQueryBuilderModifier; |
||
16 | private $count; |
||
17 | |||
18 | /** |
||
19 | * @param QueryBuilder $qb |
||
20 | * @param callable|null $countQueryBuilderModifier |
||
21 | */ |
||
22 | 12 | public function __construct(QueryBuilder $qb, callable $countQueryBuilderModifier = null) |
|
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 4 | public function take($offset, $limit) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 4 | public function count() |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 1 | public function getIterator() |
|
74 | } |
||
75 |