1 | <?php |
||
14 | abstract class DataProvider implements DataProviderInterface |
||
15 | { |
||
16 | const BATCH_SIZE = 1000; |
||
17 | |||
18 | /** |
||
19 | * @var Client |
||
20 | */ |
||
21 | private $client; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $index; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $type; |
||
32 | |||
33 | /** |
||
34 | * @var EventDispatcherInterface |
||
35 | */ |
||
36 | private $dispatcher; |
||
37 | |||
38 | /** |
||
39 | * @var int |
||
40 | */ |
||
41 | private $currentBulkSize; |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 3 | public function run( |
|
64 | |||
65 | /** |
||
66 | * Populate |
||
67 | * |
||
68 | * @return null |
||
69 | */ |
||
70 | abstract protected function populate(); |
||
71 | |||
72 | /** |
||
73 | * Index document |
||
74 | * |
||
75 | * @param string $id |
||
76 | * @param array $body |
||
77 | */ |
||
78 | 2 | public function index($id, array $body) |
|
101 | |||
102 | 3 | protected function flushBulk() |
|
109 | |||
110 | 2 | private function shouldFlushBulk() |
|
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | public function count() |
||
122 | } |
||
123 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.