for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Insenseanalytics\NovaBarMetrics;
class SqliteFrequencyDistributionExpression extends FrequencyDistributionExpression
{
/**
* Get the value of the expression.
*
* @return array
*/
public function getValue()
return [
'range' => "(cast({$this->stepSize} * cast({$this->column}/{$this->stepSize} as int) as string) || ' - ' ||
cast({$this->stepSize} * cast({$this->column}/{$this->stepSize} as int) + {$this->stepSize} - 1 as string))",
'minVal' => "{$this->stepSize} * cast({$this->column}/{$this->stepSize} as int)",
];
}