Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

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