From 733b219bce6a8fd3a188184c07744d820adde23e Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 9 Apr 2018 12:02:54 +0200 Subject: save used options during index Signed-off-by: Maxence Lange --- lib/Model/Index.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'lib/Model') diff --git a/lib/Model/Index.php b/lib/Model/Index.php index cb8478d..739d4a1 100644 --- a/lib/Model/Index.php +++ b/lib/Model/Index.php @@ -56,6 +56,9 @@ class Index implements \JsonSerializable { /** @var int */ private $status = 0; + /** @var array */ + private $options = []; + /** @var int */ private $err = 0; @@ -150,6 +153,25 @@ class Index implements \JsonSerializable { } + /** + * @param array $options + * + * @return $this + */ + public function setOptions($options) { + $this->options = $options; + + return $this; + } + + /** + * @return array + */ + public function getOptions() { + return $this->options; + } + + /** * @param int $err * -- cgit v1.2.3