diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-01-26 17:33:28 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-01-26 17:33:28 +0300 |
commit | ccf9da66a5f68730a0c1bdf46e9a3ff079165fa0 (patch) | |
tree | ca81be9517de5fd8c444b5561d40bccfeef75ca2 /lib/Model | |
parent | a15f4072b470cb6a2bd9675ed620229cc8efcd79 (diff) |
setSource/getSource
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Model')
-rw-r--r-- | lib/Model/IndexDocument.php | 21 |
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 |