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-01-26 17:33:28 +0300
committerMaxence Lange <maxence@artificial-owl.com>2018-01-26 17:33:28 +0300
commitccf9da66a5f68730a0c1bdf46e9a3ff079165fa0 (patch)
treeca81be9517de5fd8c444b5561d40bccfeef75ca2 /lib/Model
parenta15f4072b470cb6a2bd9675ed620229cc8efcd79 (diff)
setSource/getSource
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/IndexDocument.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/Model/IndexDocument.php b/lib/Model/IndexDocument.php
index a1c6e06..ab442d3 100644
--- a/lib/Model/IndexDocument.php
+++ b/lib/Model/IndexDocument.php
@@ -50,6 +50,9 @@ class IndexDocument implements \JsonSerializable {
private $tags = [];
/** @var string */
+ private $source;
+
+ /** @var string */
private $title;
/** @var string */
@@ -208,6 +211,24 @@ class IndexDocument implements \JsonSerializable {
return $this;
}
+ /**
+ * @return string
+ */
+ public function getSource() {
+ return $this->source;
+ }
+
+ /**
+ * @param string $source
+ *
+ * @return $this
+ */
+ public function setSource($source) {
+ $this->source = $source;
+
+ return $this;
+ }
+
/**
* @param string $title