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