From b340221055518f9a4e10cb07fae7f79247499cc5 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Mon, 29 Oct 2018 08:56:23 +0100 Subject: [PATCH] update Traffic Api-Command Signed-off-by: Michael Kaufmann --- lib/classes/api/commands/class.Traffic.php | 32 +++++++++++++++++----- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/lib/classes/api/commands/class.Traffic.php b/lib/classes/api/commands/class.Traffic.php index b298bc01..d850b4a7 100644 --- a/lib/classes/api/commands/class.Traffic.php +++ b/lib/classes/api/commands/class.Traffic.php @@ -17,20 +17,38 @@ */ class Traffic extends ApiCommand implements ResourceEntity { + + /** + * You cannot add traffic data + */ public function add() - {} + { + throw new Exception('You cannot add traffic data', 303); + } public function get() - {} + { + + } + /** + * You cannot update traffic data + */ public function update() - {} + { + throw new Exception('You cannot update traffic data', 303); + } public function listing() - {} + { + + } + /** + * You cannot delete traffic data + */ public function delete() - {} - - + { + throw new Exception('You cannot delete traffic data', 303); + } }