Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | 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
 */
1441 ariadna 14
final readonly class RegisteredStyle
1 efrain 15
{
1441 ariadna 16
    private Style $style;
1 efrain 17
 
1441 ariadna 18
    private bool $isMatchingRowStyle;
1 efrain 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
}