/** * @param Item $item */ public function insertItem(Item $item) { foreach ($item->getFields() as $field) { $this->output .= $field->getFormattedString(); } $this->output .= "\n"; if (!is_null($item->getValue())) { $this->output .= $item->getValue(); } $this->output .= "\n"; }