Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/iconset/PhabricatorIconSetIcon.php
| <?php | <?php | ||||
| final class PhabricatorIconSetIcon | final class PhabricatorIconSetIcon | ||||
| extends Phobject { | extends Phobject { | ||||
| private $key; | private $key; | ||||
| private $icon; | private $icon; | ||||
| private $label; | private $label; | ||||
| private $isDisabled; | |||||
| public function setKey($key) { | public function setKey($key) { | ||||
| $this->key = $key; | $this->key = $key; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getKey() { | public function getKey() { | ||||
| return $this->key; | return $this->key; | ||||
| } | } | ||||
| public function setIcon($icon) { | public function setIcon($icon) { | ||||
| $this->icon = $icon; | $this->icon = $icon; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getIcon() { | public function getIcon() { | ||||
| if ($this->icon === null) { | if ($this->icon === null) { | ||||
| return $this->getKey(); | return $this->getKey(); | ||||
| } | } | ||||
| return $this->icon; | return $this->icon; | ||||
| } | } | ||||
| public function setIsDisabled($is_disabled) { | |||||
| $this->isDisabled = $is_disabled; | |||||
| return $this; | |||||
| } | |||||
| public function getIsDisabled() { | |||||
| return $this->isDisabled; | |||||
| } | |||||
| public function setLabel($label) { | public function setLabel($label) { | ||||
| $this->label = $label; | $this->label = $label; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getLabel() { | public function getLabel() { | ||||
| return $this->label; | return $this->label; | ||||
| } | } | ||||
| } | } | ||||