Skip to content
Snippets Groups Projects
Unverified Commit 29a98215 authored by Maxence Lange's avatar Maxence Lange Committed by Morris Jobke
Browse files

Add hasIndex() to OCP\FullTextSearch\Model\IndexDocument

parent e20292f1
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