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:
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/Index.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/Model/Index.php b/lib/Model/Index.php
index 739d4a1..fb3c91a 100644
--- a/lib/Model/Index.php
+++ b/lib/Model/Index.php
@@ -154,6 +154,18 @@ class Index implements \JsonSerializable {
/**
+ * @param string $option
+ * @param string|int $value
+ *
+ * @return $this
+ */
+ public function setOption($option, $value) {
+ $this->options[$option] = $value;
+
+ return $this;
+ }
+
+ /**
* @param array $options
*
* @return $this
@@ -251,7 +263,8 @@ class Index implements \JsonSerializable {
'providerId' => $this->getProviderId(),
'documentId' => $this->getDocumentId(),
'lastIndex' => $this->getLastIndex(),
- 'status' => (int)$this->getStatus()
+ 'status' => (int)$this->getStatus(),
+ 'options' => $this->getOptions()
];
}