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

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Co-Authored-By: daita <maxence@artificial-owl.com>
pull/14249/head
Maxence Lange 7 years ago committed by Morris Jobke
parent e20292f174
commit 29a9821583
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
  1. 11
      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.

Loading…
Cancel
Save