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 / Style / ConditionalFormatting / ConditionalIconSet.php

ConditionalIconSet.php in TablePress – Tables in WordPress made easy 3.4, at libraries/vendor/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalIconSet.php

100 lines 1.8 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\Style\ConditionalFormatting;
4
5 class ConditionalIconSet
6 {
7 /** The icon set to display. */
8 private ?IconSetValues $iconSetType = null;
9
10 /** If true, reverses the default order of the icons in this icon set. */
11 private ?bool $reverse = null;
12
13 /** Indicates whether to show the values of the cells on which this icon set is applied. */
14 private ?bool $showValue = null;
15
16 /**
17 * If true, indicates that the icon set is a custom icon set.
18 * If this value is "true", there MUST be the same number of cfIcon elements
19 * as cfvo elements.
20 * If this value is "false", there MUST be 0 cfIcon elements.
21 */
22 private ?bool $custom = null;
23
24 /** @var ConditionalFormatValueObject[] */
25 private array $cfvos = [];
26
27 public function getIconSetType(): ?IconSetValues
28 {
29 return $this->iconSetType;
30 }
31
32 /**
33 * @param mixed $type
34 */
35 public function setIconSetType($type): self
36 {
37 $this->iconSetType = $type;
38
39 return $this;
40 }
41
42 public function getReverse(): ?bool
43 {
44 return $this->reverse;
45 }
46
47 public function setReverse(bool $reverse): self
48 {
49 $this->reverse = $reverse;
50
51 return $this;
52 }
53
54 public function getShowValue(): ?bool
55 {
56 return $this->showValue;
57 }
58
59 public function setShowValue(bool $showValue): self
60 {
61 $this->showValue = $showValue;
62
63 return $this;
64 }
65
66 public function getCustom(): ?bool
67 {
68 return $this->custom;
69 }
70
71 public function setCustom(bool $custom): self
72 {
73 $this->custom = $custom;
74
75 return $this;
76 }
77
78 /**
79 * Get the conditional format value objects.
80 *
81 * @return ConditionalFormatValueObject[]
82 */
83 public function getCfvos(): array
84 {
85 return $this->cfvos;
86 }
87
88 /**
89 * Set the conditional format value objects.
90 *
91 * @param ConditionalFormatValueObject[] $cfvos
92 */
93 public function setCfvos(array $cfvos): self
94 {
95 $this->cfvos = $cfvos;
96
97 return $this;
98 }
99 }
100