Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/chart/PhabricatorChartFunctionLabel.php
<?php | <?php | ||||
final class PhabricatorChartFunctionLabel | final class PhabricatorChartFunctionLabel | ||||
extends Phobject { | extends Phobject { | ||||
private $key; | |||||
private $name; | private $name; | ||||
private $color; | private $color; | ||||
private $icon; | private $icon; | ||||
private $fillColor; | private $fillColor; | ||||
public function setKey($key) { | |||||
$this->key = $key; | |||||
return $this; | |||||
} | |||||
public function getKey() { | |||||
return $this->key; | |||||
} | |||||
public function setName($name) { | public function setName($name) { | ||||
$this->name = $name; | $this->name = $name; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getName() { | public function getName() { | ||||
return $this->name; | return $this->name; | ||||
} | } | ||||
Show All 22 Lines | final class PhabricatorChartFunctionLabel | ||||
} | } | ||||
public function getFillColor() { | public function getFillColor() { | ||||
return $this->fillColor; | return $this->fillColor; | ||||
} | } | ||||
public function toWireFormat() { | public function toWireFormat() { | ||||
return array( | return array( | ||||
'key' => $this->getKey(), | |||||
'name' => $this->getName(), | 'name' => $this->getName(), | ||||
'color' => $this->getColor(), | 'color' => $this->getColor(), | ||||
'icon' => $this->getIcon(), | 'icon' => $this->getIcon(), | ||||
'fillColor' => $this->getFillColor(), | 'fillColor' => $this->getFillColor(), | ||||
); | ); | ||||
} | } | ||||
} | } |