Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthias <ilovemilk@wusa.io>2020-04-11 18:11:48 +0300
committerMatthias <ilovemilk@wusa.io>2020-04-11 18:11:48 +0300
commit158a1c41dd41fe6b602dc29aa31ab95beb8b6793 (patch)
tree670e0e66c78113f64cf62fbb71b00cc4a2a6129c /lib
parenta0642a51c15060e2394ba60115a46622dcac8663 (diff)
add notifications
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/DetectionService.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Service/DetectionService.php b/lib/Service/DetectionService.php
index ca69c31..503066a 100644
--- a/lib/Service/DetectionService.php
+++ b/lib/Service/DetectionService.php
@@ -59,10 +59,11 @@ class DetectionService {
public function getDetections() {
$detectionObjects = array();
+ //array_push($detectionObjects, new Detection(1, array()));
return $detectionObjects;
}
public function getDetection($id) {
- return DetectionSerializer::deserialize(json_decode(new Detection()));
+ return DetectionSerializer::deserialize(json_decode(new Detection(1, array())));
}
} \ No newline at end of file