| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentCart\OpenSpout\Writer\Common\Manager\Style; |
| 4 |
|
| 5 |
use FluentCart\OpenSpout\Common\Entity\Style\Style; |
| 6 |
/** |
| 7 |
* Indicates if style is updated. |
| 8 |
* It allow to know if style registration must be done. |
| 9 |
*/ |
| 10 |
class PossiblyUpdatedStyle |
| 11 |
{ |
| 12 |
private $style; |
| 13 |
private $isUpdated; |
| 14 |
public function __construct(Style $style, bool $isUpdated) |
| 15 |
{ |
| 16 |
$this->style = $style; |
| 17 |
$this->isUpdated = $isUpdated; |
| 18 |
} |
| 19 |
public function getStyle() : Style |
| 20 |
{ |
| 21 |
return $this->style; |
| 22 |
} |
| 23 |
public function isUpdated() : bool |
| 24 |
{ |
| 25 |
return $this->isUpdated; |
| 26 |
} |
| 27 |
} |
| 28 |
|