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

Method create

lib/Service/DatasetService.php:189–193  ·  view source on GitHub ↗

* create new dataset * * @param $name * @param $dimension1 * @param $dimension2 * @param $value * @return int * @throws Exception */

($name, $dimension1, $dimension2, $value)

Source from the content-addressed store, hash-verified

187 * @throws Exception
188 */
189 public function create($name, $dimension1, $dimension2, $value) {
190 $datasetId = $this->DatasetMapper->create($name, $dimension1, $dimension2, $value);
191 $this->ActivityManager->triggerEvent($datasetId, ActivityManager::OBJECT_DATASET, ActivityManager::SUBJECT_DATASET_ADD);
192 return $datasetId;
193 }
194
195 /** @param list<array<string,mixed>> $columns */
196 public function createFlexible(string $name, array $columns): array {

Callers

nothing calls this directly

Calls 1

triggerEventMethod · 0.80

Tested by

no test coverage detected