| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentCart\OpenSpout\Writer\Common\Manager; |
| 4 |
|
| 5 |
use FluentCart\OpenSpout\Common\Entity\Style\Style; |
| 6 |
/** |
| 7 |
* Allow to know if this style must replace actual row style. |
| 8 |
*/ |
| 9 |
class RegisteredStyle |
| 10 |
{ |
| 11 |
/** |
| 12 |
* @var Style |
| 13 |
*/ |
| 14 |
private $style; |
| 15 |
/** |
| 16 |
* @var bool |
| 17 |
*/ |
| 18 |
private $isMatchingRowStyle; |
| 19 |
public function __construct(Style $style, bool $isMatchingRowStyle) |
| 20 |
{ |
| 21 |
$this->style = $style; |
| 22 |
$this->isMatchingRowStyle = $isMatchingRowStyle; |
| 23 |
} |
| 24 |
public function getStyle() : Style |
| 25 |
{ |
| 26 |
return $this->style; |
| 27 |
} |
| 28 |
public function isMatchingRowStyle() : bool |
| 29 |
{ |
| 30 |
return $this->isMatchingRowStyle; |
| 31 |
} |
| 32 |
} |
| 33 |
|