Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/chart/PhabricatorChartFunction.php
- This file was moved from src/applications/fact/function/PhabricatorChartFunction.php.
<?php | <?php | ||||
abstract class PhabricatorChartFunction | abstract class PhabricatorChartFunction | ||||
extends Phobject { | extends Phobject { | ||||
private $xAxis; | |||||
private $yAxis; | |||||
private $limit; | |||||
final public function getFunctionKey() { | final public function getFunctionKey() { | ||||
return $this->getPhobjectClassConstant('FUNCTIONKEY', 32); | return $this->getPhobjectClassConstant('FUNCTIONKEY', 32); | ||||
} | } | ||||
final public static function getAllFunctions() { | final public static function getAllFunctions() { | ||||
return id(new PhutilClassMapQuery()) | return id(new PhutilClassMapQuery()) | ||||
->setAncestorClass(__CLASS__) | ->setAncestorClass(__CLASS__) | ||||
->setUniqueMethod('getFunctionKey') | ->setUniqueMethod('getFunctionKey') | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
final public function setArguments(array $arguments) { | final public function setArguments(array $arguments) { | ||||
$this->newArguments($arguments); | $this->newArguments($arguments); | ||||
return $this; | return $this; | ||||
} | } | ||||
abstract protected function newArguments(array $arguments); | abstract protected function newArguments(array $arguments); | ||||
final public function setXAxis(PhabricatorChartAxis $x_axis) { | |||||
$this->xAxis = $x_axis; | |||||
return $this; | |||||
} | |||||
final public function getXAxis() { | |||||
return $this->xAxis; | |||||
} | |||||
final public function setYAxis(PhabricatorChartAxis $y_axis) { | |||||
$this->yAxis = $y_axis; | |||||
return $this; | |||||
} | |||||
final public function getYAxis() { | |||||
return $this->yAxis; | |||||
} | |||||
} | } |