Skip to content
Snippets Groups Projects
Unverified Commit 993609cf authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

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

Add hasIndex() to OCP\FullTextSearch\Model\IndexDocument
parents 0882b600 29a98215
No related branches found
No related tags found
No related merge requests found
...@@ -183,6 +183,17 @@ class IndexDocument implements JsonSerializable { ...@@ -183,6 +183,17 @@ class IndexDocument implements JsonSerializable {
return $this->index; 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. * Set the modified time of the original document.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment