Remove rowStyle reference and replace it by new RegisteredStyle class

This commit is contained in:
Antoine Lamirault authored and Adrien Loison committed 2021-03-30 19:42:21 +02:00
1 parent c6f596c776
commit 8a17d6c71f
3 files changed
+66 -18

No files matched your search

@@ -0,0 +1,34 @@
<?php
namespace Box\Spout\Writer\Common\Manager;
use Box\Spout\Common\Entity\Style\Style;
class RegisteredStyle
{
/**
* @var Style
*/
private $style;
/**
* @var bool
*/
private $isRowStyle;
public function __construct(Style $style, bool $isRowStyle)
{
$this->style = $style;
$this->isRowStyle = $isRowStyle;
}
public function getStyle() : Style
{
return $this->style;
}
public function isRowStyle() : bool
{
return $this->isRowStyle;
}
}