/** * @param RepetitionNode $node * * @return \DOMElement */ protected function formatRepetitionNode(RepetitionNode $node) { $xmlNode = $this->createXmlNode($node->getName()); $xmlNode->setAttribute('min', $node->getMin()); if ($node->getMax() !== null) { $xmlNode->setAttribute('max', $node->getMax()); } return $xmlNode; }