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

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Model
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-04-09 13:02:54 +0300
committerMaxence Lange <maxence@artificial-owl.com>2018-04-09 13:02:54 +0300
commit733b219bce6a8fd3a188184c07744d820adde23e (patch)
treef2201753a42a8e02f0a1072679f4886a350df1ad /lib/Model
parentf19364776c5827ca7fd18c500355d5d520f9d1a1 (diff)
save used options during index
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/Index.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/Model/Index.php b/lib/Model/Index.php
index cb8478d..739d4a1 100644
--- a/lib/Model/Index.php
+++ b/lib/Model/Index.php
@@ -56,6 +56,9 @@ class Index implements \JsonSerializable {
/** @var int */
private $status = 0;
+ /** @var array */
+ private $options = [];
+
/** @var int */
private $err = 0;
@@ -151,6 +154,25 @@ class Index implements \JsonSerializable {
/**
+ * @param array $options
+ *
+ * @return $this
+ */
+ public function setOptions($options) {
+ $this->options = $options;
+
+ return $this;
+ }
+
+ /**
+ * @return array
+ */
+ public function getOptions() {
+ return $this->options;
+ }
+
+
+ /**
* @param int $err
*
* @return $this