]> _ Git - cubist_minisearch.git/commitdiff
wip #4804 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Jan 2022 11:36:39 +0000 (12:36 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Jan 2022 11:36:39 +0000 (12:36 +0100)
.idea/runConfigurations.xml [deleted file]
src/Document.php

diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
deleted file mode 100644 (file)
index 797acea..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="RunConfigurationProducerService">
-    <option name="ignoredProducers">
-      <set>
-        <option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
-      </set>
-    </option>
-  </component>
-</project>
\ No newline at end of file
index 83f79578072d22c5ee5584ee923bb158a32019d4..ff368e3e789b32b243cca975227f029fd16a977d 100644 (file)
@@ -19,6 +19,11 @@ class Document
      */
     protected $title = '';
 
+    /**
+     * @var string
+     */
+    protected $keywords = '';
+
     /**
      * @var string
      */
@@ -83,6 +88,14 @@ class Document
         return $this->url;
     }
 
+    /**
+     * @return string
+     */
+    public function getKeywords(): string
+    {
+        return $this->keywords;
+    }
+
     /**
      * @param string $id
      */
@@ -131,6 +144,14 @@ class Document
         $this->url = $url;
     }
 
+    /**
+     * @param string $keywords
+     */
+    public function setKeywords(string $keywords): void
+    {
+        $this->keywords = $keywords;
+    }
+
     /**
      * @return array[]
      */
@@ -144,7 +165,7 @@ class Document
      */
     public function getIndividualDocData()
     {
-        return ['id' => $this->getId(), 'type' => $this->getType(), 'thumb' => $this->getThumb(), 'title' => $this->getTitle(), 'url' => $this->getUrl(), 'text' => $this->getText()];
+        return ['id' => $this->getId(), 'type' => $this->getType(), 'thumb' => $this->getThumb(), 'title' => $this->getTitle(), 'url' => $this->getUrl(), 'text' => $this->getText(), 'keywords' => $this->getKeywords()];
     }
 
 }
\ No newline at end of file