From 095a9fcd3461cde948b9867190ecdd4e1aec85fa Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 19 Jan 2022 12:36:39 +0100 Subject: [PATCH] wip #4804 @0.25 --- .idea/runConfigurations.xml | 10 ---------- src/Document.php | 23 ++++++++++++++++++++++- 2 files changed, 22 insertions(+), 11 deletions(-) delete mode 100644 .idea/runConfigurations.xml diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml deleted file mode 100644 index 797acea..0000000 --- a/.idea/runConfigurations.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/Document.php b/src/Document.php index 83f7957..ff368e3 100644 --- a/src/Document.php +++ b/src/Document.php @@ -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 -- 2.39.5