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
diff options
context:
space:
mode:
-rw-r--r--lib/Model/IndexOptions.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/Model/IndexOptions.php b/lib/Model/IndexOptions.php
index 6f8e9bc..9b5b269 100644
--- a/lib/Model/IndexOptions.php
+++ b/lib/Model/IndexOptions.php
@@ -27,7 +27,7 @@
namespace OCA\FullTextSearch\Model;
-class IndexOptions {
+class IndexOptions implements \JsonSerializable {
/**
* @var array
@@ -76,4 +76,15 @@ class IndexOptions {
return $default;
}
+ /**
+ * Specify data which should be serialized to JSON
+ *
+ * @link http://php.net/manual/en/jsonserializable.jsonserialize.php
+ * @return mixed data which can be serialized by <b>json_encode</b>,
+ * which is a value of any type other than a resource.
+ * @since 5.4.0
+ */
+ public function jsonSerialize() {
+ return $this->options;
+ }
} \ No newline at end of file