1 | <?php |
||
20 | final class PHPCRPagerProvider implements PagerProviderInterface |
||
21 | { |
||
22 | const ENTITY_ALIAS = 'a'; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $objectClass; |
||
28 | |||
29 | /** |
||
30 | * @var ManagerRegistry |
||
31 | */ |
||
32 | private $doctrine; |
||
33 | |||
34 | /** |
||
35 | * @var array |
||
36 | */ |
||
37 | private $baseOptions; |
||
38 | |||
39 | /** |
||
40 | * @param ManagerRegistry $doctrine |
||
41 | * @param string $objectClass |
||
42 | * @param array $baseOptions |
||
43 | */ |
||
44 | 3 | public function __construct(ManagerRegistry $doctrine, $objectClass, array $baseOptions) |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 2 | public function provide(array $options = array()) |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 2 | protected function createQueryBuilder($method) |
|
73 | } |
||
74 |