/** * @{inheritDoc} */ protected function additionalFields() { $efficiency = $this->record->getEfficiency(); if (!empty($efficiency) || \BeerXML\Record\Recipe::TYPE_ALL_GRAIN == $this->record->getType() || \BeerXML\Record\Recipe::TYPE_PARTIAL_MASH == $this->record->getType()) { $this->xmlWriter->writeElement('EFFICIENCY', $efficiency); } if ($forcedCarb = $this->record->getForcedCarbonation()) { $this->xmlWriter->writeElement('FORCED_CARBONATION', $this->boolToString($forcedCarb)); } $date = $this->record->getDate(); if ($date instanceof \DateTime) { $this->xmlWriter->writeElement('DATE', $date->format('d M y')); } parent::additionalFields(); }