/** * @return $this */ protected function convertLines() { $max = $this->dataObject->count(); for ($lineNumber = 0; $lineNumber < $max; $lineNumber++) { $this->dataObject->updateLine($lineNumber, $this->createRowObjectByLineNumber($lineNumber)); } return $this; }
/** * @param DataObjectInterface $dataObject * @param int $lineNumber */ protected function createSkipLine(DataObjectInterface $dataObject, $lineNumber) { $lineContent = $dataObject->getLine($lineNumber); $changedContent = $this->factory->create(BlockTypes::BLOCK_SKIP); $changedContent->setContent($lineContent->getContent()); $dataObject->updateLine($lineNumber, $changedContent); }