@@ -525,6 +525,11 @@ |
||
525 | 525 | $relationProcessor->processFieldRelations([], 24, 2, $contentTypeMock, $existingRelations); |
526 | 526 | } |
527 | 527 | |
528 | + /** |
|
529 | + * @param integer $id |
|
530 | + * @param null|integer $fieldDefinitionId |
|
531 | + * @param integer $contentId |
|
532 | + */ |
|
528 | 533 | protected function getStubbedRelation($id, $type, $fieldDefinitionId, $contentId) |
529 | 534 | { |
530 | 535 | return new \eZ\Publish\Core\Repository\Values\Content\Relation( |
@@ -113,6 +113,9 @@ discard block |
||
113 | 113 | $output->writeln('Finished re-indexing'); |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param boolean $commit |
|
118 | + */ |
|
116 | 119 | protected function indexIteratively(InputInterface $input, OutputInterface $output, $iterationCount, $commit) |
117 | 120 | { |
118 | 121 | if ($contentIds = $input->getOption('content-ids')) { |
@@ -160,6 +163,10 @@ discard block |
||
160 | 163 | } |
161 | 164 | |
162 | 165 | |
166 | + /** |
|
167 | + * @param integer $processCount |
|
168 | + * @param integer $iterationCount |
|
169 | + */ |
|
163 | 170 | private function runParallelProcess(ProgressBar $progress, Statement $stmt, $processCount, $iterationCount, $commit) |
164 | 171 | { |
165 | 172 | /** |
@@ -237,7 +244,7 @@ discard block |
||
237 | 244 | * @param \Doctrine\DBAL\Driver\Statement $stmt |
238 | 245 | * @param int $iterationCount |
239 | 246 | * |
240 | - * @return int[][] Return an array of arrays, each array contains content id's of $iterationCount. |
|
247 | + * @return \Generator Return an array of arrays, each array contains content id's of $iterationCount. |
|
241 | 248 | */ |
242 | 249 | private function fetchIteration(Statement $stmt, $iterationCount) |
243 | 250 | { |