diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-02-19 13:59:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-19 13:59:26 +0300 |
commit | 993609cf51067066a764830dd17c49a9024cf04d (patch) | |
tree | ed4d23f338deab8f4ddb3e909a5accd782049b2a /lib | |
parent | 0882b6008e228d1b3ac9c59b12afdf0786a08cdf (diff) | |
parent | 29a98215835f06236149d209c0e2583164a3a3df (diff) |
Merge pull request #14249 from nextcloud/enhancement/noid/add-gotindex-to-indexdocument
Add hasIndex() to OCP\FullTextSearch\Model\IndexDocument
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/FullTextSearch/Model/IndexDocument.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/FullTextSearch/Model/IndexDocument.php b/lib/public/FullTextSearch/Model/IndexDocument.php index 78679ac6225..d00a8461ee8 100644 --- a/lib/public/FullTextSearch/Model/IndexDocument.php +++ b/lib/public/FullTextSearch/Model/IndexDocument.php @@ -183,6 +183,17 @@ class IndexDocument implements JsonSerializable { return $this->index; } + /** + * return if Index is defined. + * + * @since 16.0.0 + * + * @return bool + */ + final public function hasIndex(): bool { + return $this->index !== null; + } + /** * Set the modified time of the original document. |