PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
tablepress / libraries / vendor / PhpSpreadsheet / Worksheet / Table / TableDxfsStyle.php

TableDxfsStyle.php in TablePress – Tables in WordPress made easy 3.4, at libraries/vendor/PhpSpreadsheet/Worksheet/Table/TableDxfsStyle.php

171 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace TablePress\PhpOffice\PhpSpreadsheet\Worksheet\Table;
4
5 use TablePress\PhpOffice\PhpSpreadsheet\Style\Style;
6 use TablePress\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 public function __construct(string $name)
51 {
52 $this->name = $name;
53 }
54
55 /**
56 * Get name.
57 */
58 public function getName(): string
59 {
60 return $this->name;
61 }
62
63 /**
64 * Set header row dxfs index.
65 */
66 public function setHeaderRow(int $row): self
67 {
68 $this->headerRow = $row;
69
70 return $this;
71 }
72
73 /**
74 * Get header row dxfs index.
75 */
76 public function getHeaderRow(): ?int
77 {
78 return $this->headerRow;
79 }
80
81 /**
82 * Set first row stripe dxfs index.
83 */
84 public function setFirstRowStripe(int $row): self
85 {
86 $this->firstRowStripe = $row;
87
88 return $this;
89 }
90
91 /**
92 * Get first row stripe dxfs index.
93 */
94 public function getFirstRowStripe(): ?int
95 {
96 return $this->firstRowStripe;
97 }
98
99 /**
100 * Set second row stripe dxfs index.
101 */
102 public function setSecondRowStripe(int $row): self
103 {
104 $this->secondRowStripe = $row;
105
106 return $this;
107 }
108
109 /**
110 * Get second row stripe dxfs index.
111 */
112 public function getSecondRowStripe(): ?int
113 {
114 return $this->secondRowStripe;
115 }
116
117 /**
118 * Set Header row Style.
119 */
120 public function setHeaderRowStyle(Style $style): self
121 {
122 $this->headerRowStyle = $style;
123
124 return $this;
125 }
126
127 /**
128 * Get Header row Style.
129 */
130 public function getHeaderRowStyle(): ?Style
131 {
132 return $this->headerRowStyle;
133 }
134
135 /**
136 * Set first row stripe Style.
137 */
138 public function setFirstRowStripeStyle(Style $style): self
139 {
140 $this->firstRowStripeStyle = $style;
141
142 return $this;
143 }
144
145 /**
146 * Get first row stripe Style.
147 */
148 public function getFirstRowStripeStyle(): ?Style
149 {
150 return $this->firstRowStripeStyle;
151 }
152
153 /**
154 * Set second row stripe Style.
155 */
156 public function setSecondRowStripeStyle(Style $style): self
157 {
158 $this->secondRowStripeStyle = $style;
159
160 return $this;
161 }
162
163 /**
164 * Get second row stripe Style.
165 */
166 public function getSecondRowStripeStyle(): ?Style
167 {
168 return $this->secondRowStripeStyle;
169 }
170 }
171