Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/fact/chart/PhabricatorChartFunctionLabel.php
12256 views
1
<?php
2
3
final class PhabricatorChartFunctionLabel
4
extends Phobject {
5
6
private $key;
7
private $name;
8
private $color;
9
private $icon;
10
private $fillColor;
11
12
public function setKey($key) {
13
$this->key = $key;
14
return $this;
15
}
16
17
public function getKey() {
18
return $this->key;
19
}
20
21
public function setName($name) {
22
$this->name = $name;
23
return $this;
24
}
25
26
public function getName() {
27
return $this->name;
28
}
29
30
public function setColor($color) {
31
$this->color = $color;
32
return $this;
33
}
34
35
public function getColor() {
36
return $this->color;
37
}
38
39
public function setIcon($icon) {
40
$this->icon = $icon;
41
return $this;
42
}
43
44
public function getIcon() {
45
return $this->icon;
46
}
47
48
public function setFillColor($fill_color) {
49
$this->fillColor = $fill_color;
50
return $this;
51
}
52
53
public function getFillColor() {
54
return $this->fillColor;
55
}
56
57
public function toWireFormat() {
58
return array(
59
'key' => $this->getKey(),
60
'name' => $this->getName(),
61
'color' => $this->getColor(),
62
'icon' => $this->getIcon(),
63
'fillColor' => $this->getFillColor(),
64
);
65
}
66
67
}
68
69