From ccf9da66a5f68730a0c1bdf46e9a3ff079165fa0 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Fri, 26 Jan 2018 13:33:28 -0100 Subject: setSource/getSource Signed-off-by: Maxence Lange --- lib/Model/IndexDocument.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/Model') 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 @@ -49,6 +49,9 @@ class IndexDocument implements \JsonSerializable { /** @var array */ private $tags = []; + /** @var string */ + private $source; + /** @var string */ private $title; @@ -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 -- cgit v1.2.3