/** * @inheritdoc */ public function getImportedItems(Import $import) { $ident = $this->getLogIdent($import); $cursor = null; do { $items = $this->predis->hscan($ident, $cursor); foreach ($items as $item) { (yield json_decode($item, true)); } } while ($cursor > 0); }