Box\Spout\Writer\AbstractWriter::setDefaultRowStyle PHP Method

setDefaultRowStyle() public method

Overriding the default style instead of using "addRowWithStyle" improves performance by 20%.
See also: https://github.com/box/spout/issues/272
public setDefaultRowStyle ( Style $defaultStyle ) : AbstractWriter
$defaultStyle Box\Spout\Writer\Style\Style
return AbstractWriter
    public function setDefaultRowStyle($defaultStyle)
    {
        $this->defaultRowStyle = $defaultStyle;
        $this->resetRowStyleToDefault();
        return $this;
    }