MCPcopy Create free account
hub / github.com/Rello/analytics / create

Method create

lib/Service/ThresholdService.php:75–81  ·  view source on GitHub ↗

* create new threshold for dataset * * @param int $reportId * @param $dimension * @param $option * @param $value * @param int $severity * @param $coloring * @return int * @throws Exception */

(int $reportId, $dimension, $option, $value, int $severity, $coloring)

Source from the content-addressed store, hash-verified

73 * @throws Exception
74 */
75 public function create(int $reportId, $dimension, $option, $value, int $severity, $coloring) {
76 if (empty($this->ReportMapper->readOwn($reportId))) {
77 return 0;
78 }
79 $this->ReportMapper->increaseVersionByReport($reportId);
80 return $this->ThresholdMapper->create($reportId, $dimension, $value, $option, $severity, $coloring);
81 }
82
83 private function floatvalue($val) {
84 // if value is a 3 digit comma number with one leading zero like 0,111, it should not go through the 1000 separator removal

Callers

nothing calls this directly

Calls 2

readOwnMethod · 0.45

Tested by

no test coverage detected