1 | <?php |
||
14 | class DoctrineReader implements CountableReader |
||
15 | { |
||
16 | /** |
||
17 | * @var ObjectManager |
||
18 | */ |
||
19 | protected $objectManager; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $objectName; |
||
25 | |||
26 | /** |
||
27 | * @var IterableResult |
||
28 | */ |
||
29 | protected $iterableResult; |
||
30 | |||
31 | /** |
||
32 | * @param ObjectManager $objectManager |
||
33 | * @param string $objectName e.g. YourBundle:YourEntity |
||
34 | */ |
||
35 | 5 | public function __construct(ObjectManager $objectManager, $objectName) |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 1 | public function getFields() |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 1 | public function current() |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 1 | public function next() |
|
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function key() |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | 1 | public function valid() |
|
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | 1 | public function rewind() |
|
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | 1 | public function count() |
|
108 | } |
||
109 |