* 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)
| 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 |
nothing calls this directly
no test coverage detected