diff options
Diffstat (limited to 'lib/Model')
-rw-r--r-- | lib/Model/Index.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/Model/Index.php b/lib/Model/Index.php index 739d4a1..fb3c91a 100644 --- a/lib/Model/Index.php +++ b/lib/Model/Index.php @@ -154,6 +154,18 @@ class Index implements \JsonSerializable { /** + * @param string $option + * @param string|int $value + * + * @return $this + */ + public function setOption($option, $value) { + $this->options[$option] = $value; + + return $this; + } + + /** * @param array $options * * @return $this @@ -251,7 +263,8 @@ class Index implements \JsonSerializable { 'providerId' => $this->getProviderId(), 'documentId' => $this->getDocumentId(), 'lastIndex' => $this->getLastIndex(), - 'status' => (int)$this->getStatus() + 'status' => (int)$this->getStatus(), + 'options' => $this->getOptions() ]; } |