/**
* {@inheritdoc}
*/
public function read()
{
$configuration = $this->getJobConfiguration();
if (!$this->isExecuted) {
$this->isExecuted = true;
$this->families = $this->getFamilies($configuration['filters']);
}
$result = $this->families->current();
if (!empty($result)) {
$this->stepExecution->incrementSummaryInfo('read');
$this->families->next();
} else {
$result = null;
}
return $result;
}