Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Model/IndexDocument.php')
-rw-r--r--lib/Model/IndexDocument.php32
1 files changed, 17 insertions, 15 deletions
diff --git a/lib/Model/IndexDocument.php b/lib/Model/IndexDocument.php
index 099e193..4a1bc39 100644
--- a/lib/Model/IndexDocument.php
+++ b/lib/Model/IndexDocument.php
@@ -32,49 +32,51 @@ class IndexDocument implements \JsonSerializable {
const ENCODED_BASE64 = 1;
/** @var string|int */
- private $id;
+ public $id;
/** @var string */
- private $providerId;
+ public $providerId;
/** @var DocumentAccess */
- private $access;
+ public $access;
/** @var Index */
- private $index;
+ public $index;
/** @var int */
- private $modifiedTime = 0;
+ public $modifiedTime = 0;
/** @var array */
- private $tags = [];
+ public $tags = [];
+ // TODO: do we really need it in the base class ?
/** @var string */
- private $source;
+ public $source = '';
/** @var string */
- private $title;
+ public $title = '';
/** @var string */
- private $content = null;
+ public $content = null;
/** @var string */
- private $link = '';
+ public $link = '';
/** @var array */
- private $more = [];
+ public $more = [];
/** @var array */
- private $excerpts = [];
+ public $excerpts = [];
/** @var string */
- private $score;
+ public $score;
/** @var array */
- private $info = [];
+ public $info = [];
/** @var int */
- private $contentEncoded;
+ public $contentEncoded;
+
public function __construct($providerId, $id) {
$this->providerId = $providerId;