Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/files/iconset/PhabricatorIconSetIcon.php
12242 views
1
<?php
2
3
final class PhabricatorIconSetIcon
4
extends Phobject {
5
6
private $key;
7
private $icon;
8
private $label;
9
private $isDisabled;
10
11
public function setKey($key) {
12
$this->key = $key;
13
return $this;
14
}
15
16
public function getKey() {
17
return $this->key;
18
}
19
20
public function setIcon($icon) {
21
$this->icon = $icon;
22
return $this;
23
}
24
25
public function getIcon() {
26
if ($this->icon === null) {
27
return $this->getKey();
28
}
29
return $this->icon;
30
}
31
32
public function setIsDisabled($is_disabled) {
33
$this->isDisabled = $is_disabled;
34
return $this;
35
}
36
37
public function getIsDisabled() {
38
return $this->isDisabled;
39
}
40
41
public function setLabel($label) {
42
$this->label = $label;
43
return $this;
44
}
45
46
public function getLabel() {
47
return $this->label;
48
}
49
50
}
51
52