Remove rowStyle reference and replace it by new RegisteredStyle class
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user