-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
ConditionalDataBar.php
112 lines (89 loc) · 2.58 KB
/
ConditionalDataBar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
namespace PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting;
use PhpOffice\PhpSpreadsheet\Style\Color;
class ConditionalDataBar
{
/** <dataBar> attribute */
private $showValue;
/** <dataBar> children */
/** @var ConditionalFormatValueObject[] */
private $conditionalFormatValueObjects = [];
/** @var Color */
private $color;
/** @var ConditionalFormattingRuleExtension[] */
private $conditionalFormattingRuleExtList = [];
/**
* @return null|string
*/
public function getShowValue()
{
return $this->showValue;
}
/**
* @param int $showValue
*/
public function setShowValue($showValue)
{
$this->showValue = $showValue;
return $this;
}
/**
* @return ConditionalFormatValueObject[]
*/
public function getConditionalFormatValueObjects(): array
{
return $this->conditionalFormatValueObjects;
}
/**
* @param ConditionalFormatValueObject[] $conditionalFormatValueObjects
*/
public function setConditionalFormatValueObjects(array $conditionalFormatValueObjects)
{
$this->conditionalFormatValueObjects = $conditionalFormatValueObjects;
return $this;
}
/**
* @param mixed $type
* @param null|mixed $value
* @param null|mixed $cellFomula
*
* @return $this
*/
public function addConditionalFormatValueObject($type, $value = null, $cellFomula = null): self
{
$this->conditionalFormatValueObjects[] = new ConditionalFormatValueObject($type, $value, $cellFomula);
return $this;
}
public function getColor(): Color
{
return $this->color;
}
public function setColor(Color $color): self
{
$this->color = $color;
return $this;
}
/**
* @return ConditionalFormattingRuleExtension[]
*/
public function getConditionalFormattingRuleExtList(): array
{
return $this->conditionalFormattingRuleExtList;
}
/**
* @param ConditionalFormattingRuleExtension[] $conditionalFormattingRuleExtList
*/
public function setConditionalFormattingRuleExtList(array $conditionalFormattingRuleExtList): self
{
$this->conditionalFormattingRuleExtList = $conditionalFormattingRuleExtList;
return $this;
}
/**
* @return $this
*/
public function addConditionalFormattingRuleExtList(ConditionalFormattingRuleExtension $conditionalFormattingRuleExt): self
{
$this->conditionalFormattingRuleExtList[] = $conditionalFormattingRuleExt;
return $this;
}
}