summaryrefslogtreecommitdiffstats
path: root/lib/Model/RequestQueue.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Model/RequestQueue.php')
-rw-r--r--lib/Model/RequestQueue.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/Model/RequestQueue.php b/lib/Model/RequestQueue.php
index d96253f3..afe0c1f5 100644
--- a/lib/Model/RequestQueue.php
+++ b/lib/Model/RequestQueue.php
@@ -79,6 +79,9 @@ class RequestQueue implements JsonSerializable {
/** @var int */
private $last = 0;
+ /** @var int */
+ private $timeout = 5;
+
/**
* RequestQueue constructor.
@@ -286,6 +289,24 @@ class RequestQueue implements JsonSerializable {
/**
+ * @param int $timeout
+ *
+ * @return RequestQueue
+ */
+ public function setTimeout(int $timeout): RequestQueue {
+ $this->timeout = $timeout;
+
+ return $this;
+ }
+
+ /**
+ * @return int
+ */
+ public function getTimeout(): int {
+ return $this->timeout;
+ }
+
+ /**
* @param array $data
*/
public function importFromDatabase(array $data) {