Merge pull request #14249 from nextcloud/enhancement/noid/add-gotindex-to-indexdocument

Add hasIndex() to OCP\FullTextSearch\Model\IndexDocument
This commit is contained in:
Morris Jobke 2019-02-19 11:59:26 +01:00 committed by GitHub
commit 993609cf51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -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.