|
@@ 140-142 (lines=3) @@
|
| 137 |
|
throw new \Exception('No data point in focus'); |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
if (!isset($this->currentDataSet[$this->currentDataPoint][$key])) { |
| 141 |
|
throw new \Exception($key . ' has not been defined'); |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
if ($this->currentDataSet[$this->currentDataPoint][$key]['type'] !== 'integer') { |
| 145 |
|
throw new \Exception($key . ' is not a numeric column'); |
|
@@ 172-174 (lines=3) @@
|
| 169 |
|
throw new \Exception('No data point in focus'); |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
if (!isset($this->currentDataSet[$this->currentDataPoint][$key])) { |
| 173 |
|
throw new \Exception($key . ' has not been defined'); |
| 174 |
|
} |
| 175 |
|
$this->currentDataSet[$this->currentDataPoint][$key]['value'] = $value; |
| 176 |
|
|
| 177 |
|
return $this; |