Box\Spout\Writer\Style\Style::mergeCellProperties PHP Method

mergeCellProperties() private method

private mergeCellProperties ( Style $styleToUpdate, Style $baseStyle ) : void
$styleToUpdate Style Style to update (passed as reference)
$baseStyle Style
return void
    private function mergeCellProperties($styleToUpdate, $baseStyle)
    {
        if (!$this->hasSetWrapText && $baseStyle->shouldWrapText()) {
            $styleToUpdate->setShouldWrapText();
        }
        if (!$this->getBorder() && $baseStyle->shouldApplyBorder()) {
            $styleToUpdate->setBorder($baseStyle->getBorder());
        }
        if (!$this->hasSetBackgroundColor && $baseStyle->shouldApplyBackgroundColor()) {
            $styleToUpdate->setBackgroundColor($baseStyle->getBackgroundColor());
        }
    }