Page MenuHomestyx hydra

PhabricatorConstantChartFunction.php
No OneTemporary

PhabricatorConstantChartFunction.php

<?php
final class PhabricatorConstantChartFunction
extends PhabricatorChartFunction {
const FUNCTIONKEY = 'constant';
protected function newArguments() {
return array(
$this->newArgument()
->setName('n')
->setType('number'),
);
}
public function evaluateFunction(array $xv) {
$n = $this->getArgument('n');
$yv = array();
foreach ($xv as $x) {
$yv[] = $n;
}
return $yv;
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Dec 1, 6:29 PM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
430955
Default Alt Text
PhabricatorConstantChartFunction.php (449 B)

Event Timeline