Failed Conditions
Push — master ( 8e3417...f52ae2 )
by
unknown
18:26 queued 07:14
created

TableDxfsStyle::getSecondRowStripe()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace PhpOffice\PhpSpreadsheet\Worksheet\Table;
4
5
use PhpOffice\PhpSpreadsheet\Style\Style;
6
use PhpOffice\PhpSpreadsheet\Worksheet\Table;
7
8
class TableDxfsStyle
9
{
10
    /**
11
     * Header row dxfs index.
12
     */
13
    private ?int $headerRow = null;
14
15
    /**
16
     * First row stripe dxfs index.
17
     */
18
    private ?int $firstRowStripe = null;
19
20
    /**
21
     * second row stripe dxfs index.
22
     */
23
    private ?int $secondRowStripe = null;
24
25
    /**
26
     * Header row Style.
27
     */
28
    private ?Style $headerRowStyle = null;
29
30
    /**
31
     * First row stripe Style.
32
     */
33
    private ?Style $firstRowStripeStyle = null;
34
35
    /**
36
     * Second row stripe Style.
37
     */
38
    private ?Style $secondRowStripeStyle = null;
39
40
    /**
41
     * Name of the style.
42
     */
43
    private string $name;
44
45
    /**
46
     * Create a new Table Style.
47
     *
48
     * @param string $name The name
49
     */
50 6
    public function __construct(string $name)
51
    {
52 6
        $this->name = $name;
53
    }
54
55
    /**
56
     * Get name.
57
     */
58 6
    public function getName(): string
59
    {
60 6
        return $this->name;
61
    }
62
63
    /**
64
     * Set header row dxfs index.
65
     */
66 5
    public function setHeaderRow(int $row): self
67
    {
68 5
        $this->headerRow = $row;
69
70 5
        return $this;
71
    }
72
73
    /**
74
     * Get header row dxfs index.
75
     */
76 6
    public function getHeaderRow(): ?int
77
    {
78 6
        return $this->headerRow;
79
    }
80
81
    /**
82
     * Set first row stripe dxfs index.
83
     */
84 6
    public function setFirstRowStripe(int $row): self
85
    {
86 6
        $this->firstRowStripe = $row;
87
88 6
        return $this;
89
    }
90
91
    /**
92
     * Get first row stripe dxfs index.
93
     */
94 6
    public function getFirstRowStripe(): ?int
95
    {
96 6
        return $this->firstRowStripe;
97
    }
98
99
    /**
100
     * Set second row stripe dxfs index.
101
     */
102 6
    public function setSecondRowStripe(int $row): self
103
    {
104 6
        $this->secondRowStripe = $row;
105
106 6
        return $this;
107
    }
108
109
    /**
110
     * Get second row stripe dxfs index.
111
     */
112 6
    public function getSecondRowStripe(): ?int
113
    {
114 6
        return $this->secondRowStripe;
115
    }
116
117
    /**
118
     * Set Header row Style.
119
     */
120 5
    public function setHeaderRowStyle(Style $style): self
121
    {
122 5
        $this->headerRowStyle = $style;
123
124 5
        return $this;
125
    }
126
127
    /**
128
     * Get Header row Style.
129
     */
130 4
    public function getHeaderRowStyle(): ?Style
131
    {
132 4
        return $this->headerRowStyle;
133
    }
134
135
    /**
136
     * Set first row stripe Style.
137
     */
138 6
    public function setFirstRowStripeStyle(Style $style): self
139
    {
140 6
        $this->firstRowStripeStyle = $style;
141
142 6
        return $this;
143
    }
144
145
    /**
146
     * Get first row stripe Style.
147
     */
148 4
    public function getFirstRowStripeStyle(): ?Style
149
    {
150 4
        return $this->firstRowStripeStyle;
151
    }
152
153
    /**
154
     * Set second row stripe Style.
155
     */
156 6
    public function setSecondRowStripeStyle(Style $style): self
157
    {
158 6
        $this->secondRowStripeStyle = $style;
159
160 6
        return $this;
161
    }
162
163
    /**
164
     * Get second row stripe Style.
165
     */
166 4
    public function getSecondRowStripeStyle(): ?Style
167
    {
168 4
        return $this->secondRowStripeStyle;
169
    }
170
}
171