getStyle(); if (!$style instanceof TextBoxStyle || !$style->hasInnerMargins()) { return; } $xmlWriter = $this->getXmlWriter(); $margins = implode(', ', $style->getInnerMargin()); $xmlWriter->writeAttribute('inset', $margins); } /** * Writer border. */ public function writeBorder(): void { $style = $this->getStyle(); if (!$style instanceof TextBoxStyle) { return; } $xmlWriter = $this->getXmlWriter(); $xmlWriter->startElement('v:stroke'); $xmlWriter->writeAttributeIf($style->getBorderSize() !== null, 'weight', $style->getBorderSize() . 'pt'); $xmlWriter->writeAttributeIf($style->getBorderColor() !== null, 'color', $style->getBorderColor()); $xmlWriter->endElement(); // v:stroke } }