From be667dfec704bc16711941785ae9eaeb80d88648 Mon Sep 17 00:00:00 2001 From: Thijs van den Anker Date: Tue, 23 Oct 2018 21:57:29 +0200 Subject: [PATCH] Add clear method to clientRequest The clear method makes the queries and resultObjects empty. --- src/Runtime/ClientRequest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Runtime/ClientRequest.php b/src/Runtime/ClientRequest.php index 7ed66106..d5c4c323 100644 --- a/src/Runtime/ClientRequest.php +++ b/src/Runtime/ClientRequest.php @@ -134,4 +134,12 @@ public function getActions(){ return $this->queries; } + /** + * Clears all queries and resultObjects. + */ + public function clear() + { + $this->queries = []; + $this->resultObjects = []; + } }