Box\Spout\Writer\ODS\Helper\StyleHelper::getBorderXMLContent PHP Méthode

getBorderXMLContent() private méthode

Returns the contents of the borders definition for the "" section
private getBorderXMLContent ( Style $style ) : string
$style Box\Spout\Writer\Style\Style
Résultat string
    private function getBorderXMLContent($style)
    {
        $borderProperty = '<style:table-cell-properties %s />';
        $borders = array_map(function (BorderPart $borderPart) {
            return BorderHelper::serializeBorderPart($borderPart);
        }, $style->getBorder()->getParts());
        return sprintf($borderProperty, implode(' ', $borders));
    }